Bug 55259

Summary: mouse select, drag and drop puts selection too far to the right, by selection lenghth.
Product: [Applications] kate Reporter: Derek Kite <dkite>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Derek Kite 2003-02-27 07:20:11 UTC
Version:           3.1 (using KDE KDE 3.1)
Installed from:    Gentoo Packages
OS:          Linux

I notice this particularly if I create an anchor in existing text. I want to move the </a> tag over to the end of the word I want anchored.

I highlight the tag, click drag and drop with the mouse cursor pointing to the end of the word, and it puts it 4 characters over to the right.

All other occasions where I drag and drop seem to work fine.

Derek
Comment 1 András Manţia 2003-02-27 09:19:50 UTC
Funny bug, but it's in the Kate part. Try the following: 
 
1234<a></a>56789 
 
and move the </a> with the mouse after the '5". It will move at the end of the line... 
 
Andras 
Comment 2 Roland Riegel 2003-04-02 10:10:16 UTC
Hi!

For me, using KDE 3.1.1, this also happens when dragging text from the top some 
lines down.

This is because the text to move is first cutted and then pasted, so the new 
position intended by the user is invalidated.

A simple hack would be to first copy the text to the new position and then 
delete it at the old one.

Roland
Comment 3 Christoph Cullmann 2003-05-15 22:01:18 UTC
thx for the hint, fixed ;)) (too bad, not thought of that looking last time at the code)