Bug 152665 - Selection of multiple lines broken
Summary: Selection of multiple lines broken
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.9.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-21 18:58 UTC by Mike
Modified: 2008-03-03 18:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike 2007-11-21 18:58:48 UTC
Version:           svn (using KDE Devel)
OS:                Linux

If you select text which is wrapped across multiple lines then konsole inserts a line break at the wrap point when it is pasted back in (using select + middle mouse).

If you try to select an individual line then it is impossible to select the last character.
Comment 1 Robert Knight 2007-11-21 20:52:14 UTC
Various problems with text selection were fixed recently in SVN.  Please update to a newer build and see if problems persist.
Comment 2 Mike 2007-11-21 21:45:48 UTC
I have just tried a new build and the problem is still there.

When selecting the cursor gets restricted to the konsole window area, is this correct?

If you select an entire short line and select the whole line it does not enter a new line, kde3 used to enter a new line here.
Comment 3 Will Stephenson 2007-11-22 19:00:55 UTC
Reproduced, svn r740123
Test case:
echo $PATH
(select whole path, which should span >1 line)
newpath=<middleclick>
Comment 4 Will Stephenson 2007-11-22 21:07:08 UTC
Fixed by r740173, by robertknight, confirmed in a roundabout way by me.
Comment 5 Mike 2007-11-23 13:21:52 UTC
Confirmed that the multiple line copy problem is fixed.  There are still 2/3 issues which I think might be related.

The cursor is bound to the konsole window when selecting.  I think this is responsible for the 'unable to select single line including the last character' problem.  Get a line that breaks multiple lines and try to copy just the first line, you cannot select the last character.

There is also a problem where a new line is NOT inserted if you copy a short line with its newline.  eg.

- type ls
- click at start of 'l' and drag mouse to the right until the entire line is selected
- Middle mouse button
- This should (did in 3.5) paste ls with the new line character, so that the command is executed.  Now it just pastes ls and you have to manually hit enter.

Should I report these as different bugs?  My initial bug report included the last character problem.
Comment 6 Matthew Woehlke 2008-03-03 18:26:58 UTC
For the record, the second "different bug" is bug 152774. (Mike, if you also reported the first one separately, please leave the bug number here. I haven't come across it yet, but admittedly I'm not really looking for it.)