Mercurial > vim
diff src/edit.c @ 1436:77310929a1f9 v7.1.151
updated for version 7.1-151
author | vimboss |
---|---|
date | Thu, 08 Nov 2007 12:04:26 +0000 |
parents | 40aa7ae37901 |
children | f0b3b9ac2147 |
line wrap: on
line diff
--- a/src/edit.c +++ b/src/edit.c @@ -2111,7 +2111,7 @@ ins_compl_add_infercase(str, len, icase, int has_lower = FALSE; int was_letter = FALSE; - if (p_ic && curbuf->b_p_inf) + if (p_ic && curbuf->b_p_inf && len > 0) { /* Infer case of completed part. */ @@ -2225,7 +2225,7 @@ ins_compl_add_infercase(str, len, icase, wca[i] = MB_TOUPPER(wca[i]); } - /* + /* * Generate encoding specific output from wide character array. * Multi-byte characters can occupy up to five bytes more than * ASCII characters, and we also need one byte for NUL, so stay