Mercurial > hg > nnchat
changeset 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 | 701c54a45466 |
children | 8bb12c22fe05 |
files | nnchat.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {