This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
|Summary:||End key does not move caret to end of line for wrapped line|
|Component:||Painting & Printing||Assignee:||Miloslav Metelka <mmetelka>|
|Issue Type:||DEFECT||Exception Reporter:|
Description emi 2016-07-08 02:43:44 UTC
Created attachment 160311 [details] Caret 1) put caret on long wrapped line 2) press 'End' key expected: caret moves at the end of the wrapped line actual(bug): caret remains within the wrapped line and seems to move at the beginning of the next inner line (see screenshot) By comparison, Home key works and always moves the caret at the beginning of the line.
Comment 1 Svata Dedic 2016-08-12 12:43:26 UTC
It seems that the space on which the text wraps forms is consumed by the virtual linefeed; so in theory, the caret is positioned well - after the last character in the row (space), that is wrapped to newline ... so the caret goes effectively at the beginning of the new line. But it looks ugly. Even worse, if one types [space] at the beginning of a wrapped line part, the space is added at the *end* of the preceding line. Reassinging to editor/painting, perhaps LineBegin/End action or even offset/model mappings need to be changed.