Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
1435:2cdccc96d730 | 1436:77310929a1f9 |
---|---|
2109 int actual_compl_length; /* into account. */ | 2109 int actual_compl_length; /* into account. */ |
2110 int *wca; /* Wide character array. */ | 2110 int *wca; /* Wide character array. */ |
2111 int has_lower = FALSE; | 2111 int has_lower = FALSE; |
2112 int was_letter = FALSE; | 2112 int was_letter = FALSE; |
2113 | 2113 |
2114 if (p_ic && curbuf->b_p_inf) | 2114 if (p_ic && curbuf->b_p_inf && len > 0) |
2115 { | 2115 { |
2116 /* Infer case of completed part. */ | 2116 /* Infer case of completed part. */ |
2117 | 2117 |
2118 /* Find actual length of completion. */ | 2118 /* Find actual length of completion. */ |
2119 #ifdef FEAT_MBYTE | 2119 #ifdef FEAT_MBYTE |
2223 wca[i] = MB_TOLOWER(wca[i]); | 2223 wca[i] = MB_TOLOWER(wca[i]); |
2224 else if (MB_ISUPPER(c)) | 2224 else if (MB_ISUPPER(c)) |
2225 wca[i] = MB_TOUPPER(wca[i]); | 2225 wca[i] = MB_TOUPPER(wca[i]); |
2226 } | 2226 } |
2227 | 2227 |
2228 /* | 2228 /* |
2229 * Generate encoding specific output from wide character array. | 2229 * Generate encoding specific output from wide character array. |
2230 * Multi-byte characters can occupy up to five bytes more than | 2230 * Multi-byte characters can occupy up to five bytes more than |
2231 * ASCII characters, and we also need one byte for NUL, so stay | 2231 * ASCII characters, and we also need one byte for NUL, so stay |
2232 * six bytes away from the edge of IObuff. | 2232 * six bytes away from the edge of IObuff. |
2233 */ | 2233 */ |