From 6d2f26c494d9459dfbb023655cbe046365424f52 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 19 Sep 2013 13:49:46 +0100 Subject: [PATCH] Don't ignore word matches that vary only by case The user needs to see all case variants, even when they want searching to be done case-insensitively (which isn't supported yet). --- src/editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 5c58f00d..5a83e486 100644 --- a/src/editor.c +++ b/src/editor.c @@ -2121,7 +2121,7 @@ static GSList *get_doc_words(ScintillaObject *sci, gchar *root, gsize rootlen) { word = sci_get_contents_range(sci, pos_find, word_end); /* search whether we already have the word in, otherwise add it */ - if (g_slist_find_custom(words, word, (GCompareFunc)utils_str_casecmp) != NULL) + if (g_slist_find_custom(words, word, (GCompareFunc)strcmp) != NULL) g_free(word); else {