Bug 159261

Summary: Konsole always treats a space at the end of a selection as newline
Product: [Applications] konsole Reporter: Mike <mike>
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Mike 2008-03-13 21:23:30 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

If you select a part of a line but include a space which was between words then konsole treats the space at the end of the line as a newline.  eg.

$ ls -l /home/

Select 'ls -l ' and then paste, there will be a newline replacing the space character.  Selecting a final space is common if you are building up a long command from lots of pieces of text.
Comment 1 Robert Knight 2008-03-18 14:20:31 UTC
SVN commit 787010 by knight:

Only remove trailing whitespace from the end of the line when copying from the screen to the clipboard or selection.  If the current selection ends with white space but does not extend to the end of the line then that white space is included in the copied text.

BUG: 159261


 M  +10 -11    Screen.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=787010