Bug 266247

Summary: Selecting text in vim using the desert256 colorscheme adds trailing whitespace to the clipboard
Product: [Applications] konsole Reporter: Daniel Hahler <kde-bugzilla>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adaptee
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Daniel Hahler 2011-02-14 00:39:59 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

I am using the desert256 color scheme [1] in Vim, and when I select multiple lines in a Konsole window running Vim, all the whitespace up to the right terminal border get selected, too.

This makes it quite annoying to paste somewhere else.

This does not happen when using gnome-terminal, or another color scheme (e.g. "desert" for Vim), so it is likely related to how Konsole detects end-of-lines.

I've noticed something similar before: when using screen and vim remotely, this happened for the current line before, i.e. when marking/copying lines around the currently selected line in Vim, only the whitespace at the end of the current line was added. This feels quite related, but I had not tracked this down further.

[1]: http://vimcolorschemetest.googlecode.com/svn/colors/desert256.vim

Reproducible: Always
Comment 1 Jekyll Wu 2011-07-29 05:24:43 UTC
I can't reproduce this. Maybe related with the colorscheme used by konsole itself?
Comment 2 Jekyll Wu 2011-09-30 15:23:27 UTC
I really can't reproduce this in konsole-2.7.999. Feel free to reopen if it still happens in konsole-2.7.999.