diff nnchat.c @ 165:f2f0b6f9281b

Dont set 'again' flag in tab completion function if the new and old pattern do not match exactly (apart from case).
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 04 Nov 2010 16:10:11 +0200
parents cc1cc49d26f0
children 2e4850ece456
line wrap: on
line diff
--- a/nnchat.c	Thu Nov 04 16:00:02 2010 +0200
+++ b/nnchat.c	Thu Nov 04 16:10:11 2010 +0200
@@ -756,7 +756,7 @@
         
         /* Get pattern, check if it matches previous pattern and set 'again' flag */
         npattern = nn_editbuf_get_string(buf, startPos, endPos);
-        if (pattern && npattern && strncasecmp(npattern, pattern, strlen(pattern)) == 0)
+        if (pattern && npattern && strcasecmp(npattern, pattern) == 0)
             again = TRUE;
         th_free(pattern); pattern = npattern;
         if (!again) {