aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWouter Bolsterlee <uws+gnome@xs4all.nl>2006-06-05 19:57:08 +0800
committerWouter Bolsterlee <wbolster@src.gnome.org>2006-06-05 19:57:08 +0800
commite8952022f58a69c01033bb0a4bc8131ea0604878 (patch)
tree6dbdd2dc174d8f6ffcb39f3c547ece6cc3d845fc /lib
parent132c537330a843a9114bdea9e88a180385a13bca (diff)
downloadgsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.gz
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.bz2
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.lz
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.xz
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.zst
gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.zip
Improve next-token logic for bookmark completion. Fixes #339167 (hopefully
2006-06-05 Wouter Bolsterlee <uws+gnome@xs4all.nl> * lib/widgets/ephy-location-entry.c: (keyword_match): Improve next-token logic for bookmark completion. Fixes #339167 (hopefully for real this time).
Diffstat (limited to 'lib')
-rw-r--r--lib/widgets/ephy-location-entry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index a0dfa2921..7fb12c928 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -429,8 +429,8 @@ keyword_match (const char *list,
next_token:
- while (*p && !g_ascii_ispunct(*p)) p++;
- if (*p) p++;
+ while (*p && !g_ascii_ispunct(*p) && !g_ascii_isspace(*p)) p++;
+ while (*p && (g_ascii_ispunct(*p) || g_ascii_isspace(*p))) p++;
}
return FALSE;