Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 339436

Summary: kwrite 4.4.5 : Cursor position incorrect when inserting with "static word wrap" enabled
Product: Gentoo Linux Reporter: Eric F. GARIOUD <eric-f.garioud>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric F. GARIOUD 2010-10-02 07:56:45 UTC
When Settings/Configure Editor/Editing/General 
- Enable static word wrap : is set
- Show static word wrap marker : is set
- Wrap words at : shows 90 characters.

AND

When there is a line already split on 2 lines on more because of the preceeding setting

AND

One inserts characters immediately before the first character of the last word of the first line

THEN

If the insert leads to the word being wrapped on the second line, the insertion point will jump at the end of this word.

Graphically :

Given the following single line split in two by the word wrapping feature :

A12345 B12345 C12345 D12345 E12345 F12345
G12345 H12345 

Let's say that, to the right of the last word of the first line (F12345) there is space for 2 characters before F12345 wraps to the second line.
Lets insert characters "abc" just before the F :

Result after inserting "ab" :

A12345 B12345 C12345 D12345 E12345 abF12345
G12345 H12345

Result after inserting c :

A12345 B12345 C12345 D12345 E12345
abF12345c G12345 H12345

The c is inserted at the end of the word rather than where it should be, following ab.

Reproducible: Always




- This bug does not occurs if the line is not already split.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2010-10-25 21:13:03 UTC
Known problem for all of kde-4.4 and all applications using katepart. 

This was fixed in kde-4.5, but there is no backport. Not much we can do here...