#841 Next/Prev Word Broken When Trailing Whitespace

2: Annoying
closed-fixed
nobody
5
2010-03-16
2010-03-08
Mathias Ricken
No

The next word/previous word keyboard shortcuts are broken when there is trailing whitespace after a word. In the examples below, | marks the location of the cursor, and _ is used for trailing whitespace.

Example:
private SwingTimer |timer_

Next word:
private SwingTimer timer_
|

The cursor should have been placed after the word timer.

Example:
private SwingTimer timer_
|

Previous word:
private SwingTimer |timer_

Again, the cursor should have been placed after the word timer. The cursor behaves correctly if there is a delimiter like a semicolon ; after the word and before the trailing whitespace, or if there is no trailing whitespace.

Working Example:
private SwingTimer |timer;_

Next word:
private SwingTimer timer|;_

Next word:
private SwingTimer timer;|_

Working Example without trailing whitespace:
private SwingTimer |timer

Next word:
private SwingTimer timer|

Discussion

  • Mathias Ricken
    Mathias Ricken
    2010-03-08

    • labels: 400075 -->
     
  • Mathias Ricken
    Mathias Ricken
    2010-03-08

    No idea why I filed this as support request...

     
  • Mathias Ricken
    Mathias Ricken
    2010-03-08

    • labels: --> Definitions (source editor)
    • milestone: --> 2: Annoying
     
  • John Cate
    John Cate
    2010-03-16

    Fixed as of revision 5195 - John Cate - 3/16/10

     
  • John Cate
    John Cate
    2010-03-16

    • status: open --> closed-fixed