Bug 242685

Summary: Kile does not wrap lines correctly
Product: [Applications] kile Reporter: Thomas Damgaard <thomasdn>
Component: editorAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 2.0.85   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Damgaard 2010-06-24 14:45:27 UTC
Version:           2.0.85 (using KDE 4.4.2) 
OS:                Linux

I have just tried Kile's Static line wrapping feature and found a bug:

If you type in text with words right of the cursor, the cursor is placed incorrectly, when a word is wrapped.



Reproducible: Didn't try

Steps to Reproduce:
1: Settings > Editor > Editing > Enabled static word wrap, wrap words at 80 characters.
2: Type (not paste) in the following text on an empty line:
zero one two three four five six seven eight nine ten eleven twelve thirteen
3: Then place the cursor just before the 't' in 'twelve'.
4: Now type (not paste) in the following key sequence: "abcdefghijklmnop".
5: Notice that when you typed 'n', the line was wrapped. This placed the cursor in the wrong place: it was placed in the right side of the word 'twelve'. 



Actual Results:  
Cursor is placed incorrectly.

Expected Results:  
After a word wrap, I would expect the cursor to be placed right after the last entered character.
Comment 1 Michel Ludwig 2010-06-26 18:03:08 UTC

*** This bug has been marked as a duplicate of bug 168534 ***