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 339447 - regexp matching extends to next line even with hard newlines
regexp matching extends to next line even with 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:06 UTC by Behdad Esfahbod
Modified: 2006-04-23 09:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2006-04-23 08:06:16 UTC
If a URL ends at the right margin of the terminal, followed by a new line, the word selection logic knows that the line ends there, but the regexp matching logic doesn't.  Try:

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

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

http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/
zzzz

Now treeple-clicking on the first line doesn't select the second, knowing about the hard line break, but hover over it and see that the second line is selected as part of the URL.
Comment 1 Behdad Esfahbod 2006-04-23 09:01:47 UTC
Ok, my fix for bug 339448 actually fixed this too :).