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).
This commit is contained in:
Nick Treleaven 2013-09-19 13:49:46 +01:00
parent dcfbf22cf2
commit 6d2f26c494

View File

@ -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); word = sci_get_contents_range(sci, pos_find, word_end);
/* search whether we already have the word in, otherwise add it */ /* 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); g_free(word);
else else
{ {