Regex matching ignores offscreen contents
@egmontkob
Submitted by Egmont Koblinger Link to original bug (#754936)
Description
Regex matching correctly recognizes URLs (or whatever it wants to recognize) if they are split across multiple lines -- but only if both lines are currently onscreen.
It should also recognize the parts that are scrolled out at the moment.
Example:
Press <Enter>
many times (so that the terminal starts scrolling), then type
<bash prompt>
$ http://example.com/some/very/long/url/that/will/very/soon/wra
p/to/a/new/line
Scroll back one line (Shift+Ctrl+Up) so that only the beginning of the URL is seen.
Ctrl+Click on this URL. Expected behavior: Opens the complete long URL. Actual behavior: Opens the truncated (hence broken) short URL.
The same happens at the top of the current viewport too. You can't test it with URLs as they need a fixed prefix; but you can test with email addresses, or numbers (with the patch from bug 741728).
Version: git master