Permalink
Browse files

20_url_pattern

from debian

Fix url patterns
  • Loading branch information...
1 parent e79504b commit f7844dc73d49a1b83c0b4d8d5b759b22dae43ed6 ??? committed with youknowone Jun 13, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/fe-gtk/xtext.c
View
@@ -1856,7 +1856,9 @@ gtk_xtext_get_word (GtkXText * xtext, int x, int y, textentry ** ret_ent,
len++;
}
- if (len > 0 && word[len-1]=='.')
+ /* ignore trailing dots and commas. */
+ /* FIXME: locales? */
+ while (len > 0 && (word[len-1]=='.' || word[len-1]==',' || word[len-1]==';'))
{
len--;
str--;

0 comments on commit f7844dc

Please sign in to comment.