diff options
author | Wouter Bolsterlee <uws+gnome@xs4all.nl> | 2006-06-05 19:57:08 +0800 |
---|---|---|
committer | Wouter Bolsterlee <wbolster@src.gnome.org> | 2006-06-05 19:57:08 +0800 |
commit | e8952022f58a69c01033bb0a4bc8131ea0604878 (patch) | |
tree | 6dbdd2dc174d8f6ffcb39f3c547ece6cc3d845fc | |
parent | 132c537330a843a9114bdea9e88a180385a13bca (diff) | |
download | gsoc2013-epiphany-e8952022f58a69c01033bb0a4bc8131ea0604878.tar.gz 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).
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,9 @@ +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). + 2006-06-04 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphySidebar.cpp: 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; |