Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350362

Summary: "Go to the next word (Ctrl+Right)" in text file does not work for certain cases
Product: [Eclipse Project] Platform Reporter: Eldar Abusalimov <eldar.abusalimov>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, eclipse.felipe, jackocnr, markus.kell.r, remy.suen, Silenio_Quarti, tbading
Version: 3.7   
Target Milestone: 3.8 M4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Eldar Abusalimov CLA 2011-06-25 17:05:43 EDT
Build Identifier: 20110615-0604

In some cases word-by-word navigation in text files does not work properly: when pressing Ctrl+Right caret freezes at some point instead of moving forward.

Reproducible: Always

Steps to Reproduce:
1. Create a Text file with a single line:
foo = 
2. Place caret at the end of word "foo":
foo| = 
3. Now press Ctrl+Right. The caret is expected to move to the end of line but it remains at the same position.

Expected:
foo = |

Actual:
foo| =
Comment 1 Markus Keller CLA 2011-06-27 08:15:48 EDT
I can reproduce in 3.7 GTK. Works fine on 3.6 GTK and on 3.7 Windows 7.

The problem also occurs in CustomControlExample > StyledText.
Comment 2 Dani Megert CLA 2011-11-02 07:01:09 EDT
Another case reported in bug 362568:

Steps to Reproduce:
1. Open a text file in any editor
2. On a single line, add some whitespace and then a word
3. Ctrl+Left/Right allow you to jump to the beginning/end of the word, but
repeatedly pressing Ctrl+Left will not take you past the whitespace to the
Comment 3 Dani Megert CLA 2011-11-02 07:01:26 EDT
*** Bug 362568 has been marked as a duplicate of this bug. ***
Comment 5 Felipe Heidrich CLA 2012-02-15 11:06:27 EST
*** Bug 370932 has been marked as a duplicate of this bug. ***