aboutsummaryrefslogtreecommitdiff
path: root/x11/gnome-terminal/files/patch-src_terminal-screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-terminal/files/patch-src_terminal-screen.c')
-rw-r--r--x11/gnome-terminal/files/patch-src_terminal-screen.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/x11/gnome-terminal/files/patch-src_terminal-screen.c b/x11/gnome-terminal/files/patch-src_terminal-screen.c
new file mode 100644
index 000000000000..0f5c397cbadd
--- /dev/null
+++ b/x11/gnome-terminal/files/patch-src_terminal-screen.c
@@ -0,0 +1,33 @@
+--- src/terminal-screen.c.orig Sun Apr 2 18:27:36 2006
++++ src/terminal-screen.c Sun Apr 2 18:42:41 2006
+@@ -278,22 +278,22 @@ terminal_screen_init (TerminalScreen *sc
+ #define URLPATH "/[" PATHCHARS "]*[^]'.}>) \t\r\n,\\\"]"
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+"
+- "(:[0-9]+)?(" URLPATH ")?\\>", FLAVOR_AS_IS);
++ "[[:<:]]" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+"
++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]", FLAVOR_AS_IS);
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+"
+- "(:[0-9]+)?(" URLPATH ")?\\>",
++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+"
++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]",
+ FLAVOR_DEFAULT_TO_HTTP);
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<(mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]"
+- "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>",
++ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]"
++ "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]",
+ FLAVOR_EMAIL);
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+"
+- "@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS);
++ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+"
++ "@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS);
+
+ terminal_screen_setup_dnd (screen);
+