Bug 193543

Summary: Inserting with static word wrap causes odd behavior;
Product: [Applications] kate Reporter: Kevin Zollman <kzollman>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: thomas.braun
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kevin Zollman 2009-05-21 20:03:18 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

If static word wrap is turned on, and I insert a sentence before already existing text, the word wrap skips a word.  It's hard to describe, here's an example.

Start a text file with:

Hello I am a sentence.

Then place the cursor at the beginning of the document, before "hello" and type: "Hello, I am inserting a sentence to test word wrapping, it will produce odd results"

This produces the following text:

Hello, I am inserting a sentence to test word wrapping, it will produce odd\n
Helloresults I am a sentence.

(Where \n is the newline.)

Notice that although you were inserting before "Hello", the word wrapping moved the cursor after "Hello" and inserted the word "results".
Comment 1 Dominik Haumann 2009-06-05 00:14:33 UTC
Already known report, see bug #168534. Mark as duplicate.

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