[Konsole-devel] [Bug 223193] New: mouse text selection: _sometimes_ copying a lot of unexisting spaces instead of newline character at the end of line to the X buffer
dmitryk at interzet.ru
Sun Jan 17 19:03:30 UTC 2010
Summary: mouse text selection: _sometimes_ copying a lot of
unexisting spaces instead of newline character at the
end of line to the X buffer
Platform: Gentoo Packages
AssignedTo: konsole-devel at kde.org
ReportedBy: dmitryk at interzet.ru
Version: 2.3.3 (using KDE 4.3.3)
Compiler: gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) -O2 -pipe
Installed from: Gentoo Packages
selection - I mean simple mouse selection with copying to X buffer
It occurs only with a big number of selected lines (somewhere above one hundred
Some of them are copied to X buffer with a lot of space characters instead of
one newline character.
Way to reproduce (for example):
$ for N in `seq 1 1 51` ; do echo -e "$N\ta\t\tb\t\tc\t\t\t\t\n\tzz\nasd\tbzk\n
bg" ; done
After that select the output with your mouse and paste it by the middle mouse
button into any text editor (nano, for example).
Then select it and paste it again.
Look at the results.
There will be a number of lines, that do not end with just \n, but have a lot
of spaces before it.
Instead of nano you can use just something like that:
$ cat <<EOF | wc -c
and paste text from X buffer to cat.
Number of characters will differ between two selections of the same text.
PS sorry for my poor english
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel