Bug 158069

Summary: wrong cursor possition after Paste
Product: [Applications] kate Reporter: Peter Magdina <peter.magdina>
Component: kwriteAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: andreas, atlantis, charles, colin, jenslang
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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. ***