Bug 153261

Summary: Mouse: cannot select space just before the last letter in non-last line
Product: [Applications] konsole Reporter: alexsaa
Component: generalAssignee: Konsole Developer <konsole-devel>
Status: RESOLVED REMIND    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description alexsaa 2007-12-02 06:33:46 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages
Compiler:           CFLAGS="-O2 -march=i686 -pipe"
OS:                Linux

When I have a line 'a b c' in konsole, and this line is not the last line, I cannot select the space between 'b' and 'c'. The line is selected up to the end to give ' c\n' instead.

Example:

user@host ~ $ echo -e "a\0040b\0040c"; echo zzz
a b c
zzz
user@host ~ $

Here, I can select the space between 'a' and 'b', the space between 'echo' and 'zzz', but not between 'b' and 'c'.
Also, it is not possible to select 'a b '.
Comment 1 William Hilton 2008-03-02 21:59:37 UTC
Confirmed. Running Konsole 1.6.6 and Konsole 2.0. Simplified command to: echo "1 2". For some reason, you can select "1", "1 2", and "1 2\n", but not "1 ".
Comment 2 Matthew Woehlke 2008-03-03 18:44:22 UTC
Confirmed here also; this seems to be a regression from 1.6.6. It's also unneeded to execute the command, I can reproduce on the prompt line as well. It seems to happen iff the line ends with a space followed by a non-space (i.e. with ' 1', but not ' 12').

Simplest test appears to be typing a single character at your prompt (assuming there is a space after the prompt, otherwise add a typed space), and try to select just the space.
Comment 3 Kurt Hindenburg 2009-04-29 17:11:58 UTC
KDE3 is not supported these days.  Reopen if you reproduce in KDE4.
Comment 4 alexsaa 2010-09-30 20:37:19 UTC
Seems NOT to reproduce with 4.4.5. However, rarely it is not possible now to select " c" in the first or " 2" in the second example. That does not annoy.