summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-07 13:27:44 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-07 13:27:44 +0200
commit8df11c030c7f9e2a018817ba8b12e7b4c1b78042 (patch)
treebd56dd174b253eb31163d5f75970ebd66caa74e4 /src/fe-gtk
parent59f32ccb3a1f192c9faf8f51330db918c4ee3d46 (diff)
Fix Wikipedia URL detection - URLs inside parentheses won't work
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/xtext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c
index 585555b1..23fb0dff 100644
--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -84,9 +84,15 @@
 #endif
 
 /* is delimiter */
+#if 0
+/* () is used by Wikipedia */
 #define is_del(c) \
 	(c == ' ' || c == '\n' || c == ')' || c == '(' || \
 	 c == '>' || c == '<' || c == ATTR_RESET || c == ATTR_BOLD || c == 0)
+#endif
+#define is_del(c) \
+	(c == ' ' || c == '\n' || c == '>' || c == '<' || \
+	 c == ATTR_RESET || c == ATTR_BOLD || c == 0)
 
 #ifdef SCROLL_HACK
 /* force scrolling off */