You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Eirik Bakke (JIRA)" <ji...@apache.org> on 2018/06/24 13:17:00 UTC

[jira] [Updated] (NETBEANS-980) Cannot arrow up/down to shorter word-wrapped line in editor

     [ https://issues.apache.org/jira/browse/NETBEANS-980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eirik Bakke updated NETBEANS-980:
---------------------------------
    Description: 
If line wrap is enabled, and the text caret is located in a wrapped paragraph, the up/down arrow keys cannot be used to move the caret up/down to another wrap line if the target wrap line is shorter than the current caret position. Either nothing happens, or the caret may skip the shorter wrap lines and step multiple wrap lines up/down.

To reproduce:
1) Go to Options/Preferences->Editor->Formatting, select "All Languages" and set "Line Wrap" to "After words". Click OK.
2) Create a new plain text file and paste in the paragraph "SHORTWORD LOOOOOOOOOOOOONGWORD SHORTWORD LUUUUUUUUUUUNGWORD".
3) Resize the editor window so that the paragraph gets split into three wrap lines (one word on each wrap line--i.e. make the editor a little wider than the long word).
4) Position the cursor right after "...OOOOONG"
5) Press the "Up" arrow. Nothing happens (expected would be to the caret to move up to the end of the previous wrap line).
6) Press the "Down" arrow. This moves the caret _two_ wrap lines down instead of to the end of the next wrap line.

Tested in NetBeans 9.0 rc1.

  was:
If line wrap is enabled, and the text caret is located in a wrapped paragraph, the up/down arrow keys cannot be used to move the caret up/down to another wrap line if the target wrap line is shorter than the current caret position. Either nothing happens, or the caret may skip the shorter wrap lines and step multiple wrap lines up/down.

To reproduce:
1) Go to Options/Preferences->Editor->Formatting, select "All Languages" and set "Line Wrap" to "After words". Click OK.
2) Create a new plain text file and paste in the paragraph "SHORTWORD LOOOOOOOOOOOOONGWORD SHORTWORD LUUUUUUUUUUUNGWORD".
3) Resize the editor window so that the paragraph gets split into three wrap lines (one word on each wrap line--i.e. make the editor a little wider than the long word).
4) Position the cursor right after "...OOOOONG"
5) Press the "Up" arrow. Nothing happens (expected would be to the caret to move up to the end of the previous wrap line).
6) Press the "Down" arrow. This moves the caret _two_ wrap lines down instead of to the end of the next wrap line.

Tested in NetBeans 9.0 rc2.


> Cannot arrow up/down to shorter word-wrapped line in editor
> -----------------------------------------------------------
>
>                 Key: NETBEANS-980
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-980
>             Project: NetBeans
>          Issue Type: Bug
>          Components: editor - Other, editor - Painting &amp; Printing
>    Affects Versions: 9.0
>            Reporter: Eirik Bakke
>            Priority: Major
>
> If line wrap is enabled, and the text caret is located in a wrapped paragraph, the up/down arrow keys cannot be used to move the caret up/down to another wrap line if the target wrap line is shorter than the current caret position. Either nothing happens, or the caret may skip the shorter wrap lines and step multiple wrap lines up/down.
> To reproduce:
> 1) Go to Options/Preferences->Editor->Formatting, select "All Languages" and set "Line Wrap" to "After words". Click OK.
> 2) Create a new plain text file and paste in the paragraph "SHORTWORD LOOOOOOOOOOOOONGWORD SHORTWORD LUUUUUUUUUUUNGWORD".
> 3) Resize the editor window so that the paragraph gets split into three wrap lines (one word on each wrap line--i.e. make the editor a little wider than the long word).
> 4) Position the cursor right after "...OOOOONG"
> 5) Press the "Up" arrow. Nothing happens (expected would be to the caret to move up to the end of the previous wrap line).
> 6) Press the "Down" arrow. This moves the caret _two_ wrap lines down instead of to the end of the next wrap line.
> Tested in NetBeans 9.0 rc1.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists