From b60fa57c130d53cfb5154080f3ad5097e62a6fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Sat, 9 Jul 2005 21:48:41 +0000 Subject: Uppercase letters shouldn't breaks history autocompletion. Fix Bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-07-09 Jean-François Rameau * lib/widgets/ephy-location-entry.c: (completion_func): Uppercase letters shouldn't breaks history autocompletion. Fix Bug #308236. --- lib/widgets/ephy-location-entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c index 63ca5cb38..94033d8f6 100644 --- a/lib/widgets/ephy-location-entry.c +++ b/lib/widgets/ephy-location-entry.c @@ -316,7 +316,7 @@ completion_func (GtkEntryCompletion *completion, -1); len_key = strlen (key); - if (!strncmp (key, item, len_key)) + if (!strncasecmp (key, item, len_key)) { ret = TRUE; } @@ -330,7 +330,7 @@ completion_func (GtkEntryCompletion *completion, { len_prefix = web_prefixes[i].len; if (!strncmp (web_prefixes[i].prefix, item, len_prefix) && - !strncmp (key, item + len_prefix, len_key)) + !strncasecmp (key, item + len_prefix, len_key)) { ret = TRUE; break; -- cgit v1.2.3