Bug 158069 - wrong cursor possition after Paste
Summary: wrong cursor possition after Paste
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: kwrite (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 158229 158290 159156 159890 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-19 22:47 UTC by Peter Magdina
Modified: 2008-03-26 13:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Magdina 2008-02-19 22:47:09 UTC
Version:           4.5.9 (using 3.5.9, compiled sources)
Compiler:          Target: i586-mandriva-linux-gnu
OS:                Linux (i686) release 2.6.24.2-server-1mdv

After pasting of multi-line text cursor is positioned at the end of the first line of pasted text. It should be positioned (moved) to the absolute end of the pasted text (block). It means after the last character of pasted text.

How to reproduce:
- copy block of text with more than one line
- paste it 
- cursor is positioned to the end of the first pasted line and not to the end of the block

Please, solve it as soon as possible, because I used this editor very often and it limits me. ;-)
Thanks.
Comment 1 Colin Guthrie 2008-02-19 23:03:51 UTC
This is a big regression for me too. Tested with Mandriva packages 3.5.9.
Comment 2 Colin Guthrie 2008-02-19 23:27:28 UTC
The only change to the kate/part in the last six months is here detailed on bug #146300. I can't see how this would affect this but it's possibly worth reverting that patch to see if it restores the behaviour.
Comment 3 Peter Magdina 2008-02-20 10:01:00 UTC
Can you try to revert that patch? I don't have development environment for KDE installed.
Comment 4 Colin Guthrie 2008-02-20 10:18:02 UTC
Will do. I just need to wait for the Mandriva SVN to come out of maintenance so I can patch it in to our package nicely. Will report back in due course (I'm a little sceptical that it will make much odds tho' as there are no comments on the launchpad that originally made the patch and you'd expect that they would have noticed this regression if it indeed caused it. But will happily try all the same :)
Comment 5 Colin Guthrie 2008-02-20 11:51:06 UTC
Mandriva SVN is not back yet so tested the old fashioned way. Reverting that commit does indeed fix this issue for me. Call me unscepticalised ;)

Want me to revert it in SVN?
Comment 6 Peter Magdina 2008-02-20 11:57:18 UTC
Yes please, I would appreciate it. I can live with bug #146300, but I cannot live with this bug.

And as I read description of bug #146300, it was applied in KDE4 too. So probably there is the same issue. (Just remark.)
Comment 7 Colin Guthrie 2008-02-20 12:02:43 UTC
SVN commit 777286 by cguthrie:

Revert r772352 as it causes an error when pasting multi-line text blocks, leaving the caret at the end of the first line of the pasted block.
BUG: 158069
CCBUG: 146300

 M  +1 -1      katesupercursor.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=777286
Comment 8 Dominik Haumann 2008-03-02 14:11:49 UTC
*** Bug 158290 has been marked as a duplicate of this bug. ***
Comment 9 Dominik Haumann 2008-03-02 14:12:25 UTC
*** Bug 158229 has been marked as a duplicate of this bug. ***
Comment 10 atlantis 2008-03-08 18:36:20 UTC
I have the latest binaries for openSuSE 10.3 and the bug is still there. There has been an update to kate for openSuSE which did not resolve that bug. Am I missing something?
Comment 11 Colin Guthrie 2008-03-09 18:41:22 UTC
This is the KDE bugtracker. Your question is OpenSuSE specific and you should use the SuSE mailing lists or bugtrackers for this kind of enquiry.
Comment 12 Matthew Woehlke 2008-03-15 00:13:11 UTC
*** Bug 159156 has been marked as a duplicate of this bug. ***
Comment 13 Pino Toscano 2008-03-26 13:32:14 UTC
*** Bug 159890 has been marked as a duplicate of this bug. ***