select by word crosses some whitespace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
I've come across some very annoying behaviour in gnome-terminal. When I
double-click and drag to select-by-word, it will cross some newline boundaries,
which IMHO it should never do until the mouse is dragged across the newline.
Example:
[msoulier@
devrpms/
devrpms/
The above appears in my terminal like this...
[msoulier@
devrpms/
devrpms/
...but notice that when I pasted it in the first case, without modification,
that the first newline was not present. This also causes the select-by-word on
the second pasted line to select all of the way back to the * on the first line.
I'll delimit the selection that appears with curly braces below, when I
double-click on the second line.
[msoulier@
devrpms/
devrpms/
This is totally wrong, and works fine in xterm. It will select like so:
[msoulier@
{devrpms/
devrpms/
This makes select-by-word pretty much useless in a lot of cases, and it makes
the paste of the region wrong, as the first newline is not respected.
If I run script before executing the ls command, the output is interesting...
Script started on Mon Jan 3 10:24:49 2005
[msoulier@
ESC[00mESC[
ESC[01;
ESC[m[msoulier@
ESC[HESC[2Jexit
Script done on Mon Jan 3 10:25:02 2005
I'm not entirely sure how to interpret those control characters, but it did
capture the newline correctly.
I can't reproduce this bug. Can you provide a recipe for testing it which
doesn't rely on your local environment?