[Konsole-devel] [Bug 188528] konsole's history adds spaces to end of lines when copying text

tomasb at kapsa.cz tomasb at kapsa.cz
Tue Oct 18 20:39:01 UTC 2011


https://bugs.kde.org/show_bug.cgi?id=188528





--- Comment #101 from  <tomasb kapsa cz>  2011-10-18 20:39:00 ---
Thank you for your reply and your patch.

1) I don't know, what _includeTrailingWhitespace exactly is. Probably it is
true because of blue mcedit background. Therefore you are suppressing
nonexisting spaces not only on line ends, but also on line beginings.

This problem is not so easy to spot. When I'm copying from mcedit on my home
box, it behaves correctly. But when I ssh to old server which runs old mcedit,
this mcedit doesn't print indentation explicitly (only moves cursor) and then
such spaces are riped off and copied text looses indentation.

Alternatively you could test it with something like dialog --infobox "qwe" 10
10 and you will see, that it will suppress spaces on the left of dialog.

2) Main reason was not to waste RAM :-)

3) Yes, tab character problem can be solved similar way. You can write tab
character normally into screen buffer and it will be copied to clipboard. You
just need to filter out padding between tabs when copying to clipboard.

-- 
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 mailing list