Bug 55259 - mouse select, drag and drop puts selection too far to the right, by selection lenghth.
Summary: mouse select, drag and drop puts selection too far to the right, by selection...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 07:20 UTC by Derek Kite
Modified: 2003-05-15 22:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)