Two minor issues with word wrap and "End key"
1.) Open the attached file in text editor. Enable word wrap. Go to line 5 and hit the End key in the keyboard.
Then hit the Up arrow key
The cursor takes you to the first line of the file. The expected behaviour would be to take you to the start of the immediate line
2.) Open the attached file in text editor. Enable word wrap. Go to line 5 and hit the End key in the keyboard. The cursor appears in the immediate line after 5 as in the attached picture. I compared the behaviour of ADS with Netbeans and both of them show the same behaviour. But Sachin pointed out that in Intell-j the cursor appears towards the end of the line 5 just before the arrow which is more likely the expected behaviour.
![]() |
3 KB
|
113 KB
There are two NetBeans issues about this: #207975 and #199960. I would wait for the upstream fix since the issue seems minor and the fix complex as it touches BaseCaret; I don't want to potentially break the caret for such a corner-case.
Conceptually this is messy because pressing End on the 1st line or Home on the 2nd line moves the caret to the same offset within the Document but visually it should be on different locations.
Issue #7757 |
Closed |
Completion |
No due date |
No fixed build |
No time estimate |
There are two NetBeans issues about this: #207975 and #199960. I would wait for the upstream fix since the issue seems minor and the fix complex as it touches BaseCaret; I don't want to potentially break the caret for such a corner-case.
Conceptually this is messy because pressing End on the 1st line or Home on the 2nd line moves the caret to the same offset within the Document but visually it should be on different locations.