# HG changeset patch # User Matti Hamalainen # Date 1288879811 -7200 # Node ID f2f0b6f9281be8af169e0319db92c41ec83921cf # Parent 701c54a454668912ed358bee5e044ab8556bbdf4 Dont set 'again' flag in tab completion function if the new and old pattern do not match exactly (apart from case). diff -r 701c54a45466 -r f2f0b6f9281b nnchat.c --- 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) {