repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: c75a48da1e08248ad896e5d23939b8dfa53b5ec5:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit c75a48da1e08248ad896e5d23939b8dfa53b5ec5
Author: Marc Lehmann 
Date:   Tue Jan 3 21:36:15 2006 +0000

    *** empty log message ***

diff --git a/Changes b/Changes
index ca866c946ff679fb925d7428c93c31e48edfc2b3..
index ..fd20a77515f5635ff98e0bf494189665ca9980a6 100644
--- a/Changes
+++ b/Changes
@@ -11,7 +11,8 @@ WISH: make builtin character glyphs optional

 	- SECURITY FIX: on systems using openpty (most BSDs, not GNU/Linux),
           permissions were not correctly updated on the tty device and
-          were left as world-readable and world-writable.
+          were left as world-readable and world-writable (likely in original
+          rxvt, too).
         - meta8 support was forcefully enabled in most configurations.
           restored configurability of this (useless) feature (reported
           by Mikachu)
diff --git a/src/perl/selection b/src/perl/selection
index 4395e44333cddaafa0ee1e47ac1ff3afb40e6b92..
index ..b839c58930ec264d3480ad4c786d642db453eb37 100644
--- a/src/perl/selection
+++ b/src/perl/selection
@@ -10,8 +10,11 @@ sub on_keyboard_command {
 }

 my @patterns = (
-   # urls
-   qr{ ([a-z0-9.+\-]+://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+) }x,
+   # urls, just a heuristic
+   qr{(
+      (?:https?|ftp|news|mailto|file)://[ab-zA-Z0-9\-\@;\/?:&=%\$_.+!*\x27(),]+
+      [^.]   # do not include a trailing dot, its wrong too often
+   )}x,

    # shell-like argument quoting
    qr{\G\s*(

-----END OF PAGE-----