From e8952022f58a69c01033bb0a4bc8131ea0604878 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Mon, 5 Jun 2006 11:57:08 +0000 Subject: Improve next-token logic for bookmark completion. Fixes #339167 (hopefully 2006-06-05 Wouter Bolsterlee * lib/widgets/ephy-location-entry.c: (keyword_match): Improve next-token logic for bookmark completion. Fixes #339167 (hopefully for real this time). --- lib/widgets/ephy-location-entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/widgets/ephy-location-entry.c') 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; -- cgit v1.2.3