From 8df11c030c7f9e2a018817ba8b12e7b4c1b78042 Mon Sep 17 00:00:00 2001 From: Berke Viktor Date: Sun, 7 Oct 2012 13:27:44 +0200 Subject: Fix Wikipedia URL detection - URLs inside parentheses won't work --- src/fe-gtk/xtext.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/fe-gtk') 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 */ -- cgit 1.4.1