After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339448 - selection doesn't respect hard newlines
selection doesn't respect hard newlines
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-23 08:11 UTC by Behdad Esfahbod
Modified: 2006-04-23 08:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2006-04-23 08:11:40 UTC
When text ends at the right margin of the terminal, followed by a newline, the word/line-selection logic knows that the selection shouldn't extend to the next line, but when you select multiple lines and paste in say gedit, either using PRIMARY or CLIPBOARD, no newline is added where it should.

Try this:
perl -e 'print "http://", "x" x 72, "/\n", "zzzz\n"'

(assuming 80 columns) you get something like this in the output:

http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
zzzz

but then select and copy the two lines into gedit and see they unwrap to one line.

Similar bug, with regexp matching: bug 339447.
Comment 1 Behdad Esfahbod 2006-04-23 08:40:23 UTC
2006-04-23  Behdad Esfahbod  <behdad@gnome.org>

        Bug 339448 – selection doesn't respect hard newlines

        * src/vte.c (vte_terminal_get_text_range_maybe_wrapped): Add newline
        to the end of each line that is not soft-wrapped.