Bug 91544

Summary: unauthorized text inserted randomly
Product: [Applications] kate Reporter: linux
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 2.2.1   
Target Milestone: ---   
Platform: Conectiva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description linux 2004-10-17 21:23:53 UTC
Version:           2.2.1 (using KDE KDE 3.2.3)
Installed from:    Conectiva RPMs
OS:                Linux

While editing perl code files, KATE will take it upon itself to insert random text in places.

In each case it is a result from a copy-past where a variable is being pasted.  You don't know this change has happened until you get compile errors.  For example, if I am copying and pasting DM_DBconnect($); the following happens:


$here = <<"EDITBLOCK";
EDITBLOCK

randomly changed to 
$here = <<"EDITBLOCK";
EDITBLOCKDM_DBconnect

 and 
elsif($RunCount == 7) {
randomly changed to
elsif($RunCount == 7) {DM_DBconnect(
Comment 1 Anders Lund 2004-10-17 21:54:09 UTC
Please provide us with a file and exact instructions as to what to select and where to paste.
Comment 2 linux 2004-10-18 00:43:14 UTC
As soon as I know when and how the change occurs, I will post more information.
Since the text is changed in an area not currently being viewed during edit, you don't know the change has taken place until you run the program and find errors and find the places the text pieces have been added.


I am a programmer as well, so I will do my best to find more information.
I am positive it happened during a paste or using the mouse scroll wheel.
In each case, the piece added matched another peice of code, less a $ char.

I have only been using KATE for 2 weeks, so i'm expecting the bug to happen again.  
Comment 3 Christoph Cullmann 2004-10-21 22:58:32 UTC
it is possible that your scrollwheel acts as third mouse button, too, and may be accidently triggered while scrolling? this would lead to some paste events while scrolling around ;)
Comment 4 Christoph Cullmann 2004-10-26 00:11:04 UTC
sorry, no bug in kate bug ;)
Comment 5 ajayakumar 2008-04-01 13:37:20 UTC
Similar problem exists in KWrite.  When I am editing (copy, delete), the text gets inserted automatically at multiple random locations.  The problem becomes evident only while compiling.  
However, I experienced this problem only when I am using KWrite on SUSE 10.3.  It does not have problems on Ubuntu.