vim-patch:7.4.933

Problem:    Crash when using longest completion match.
Solution:   Fix array index.

e4eda3bc71
This commit is contained in:
watiko
2016-02-16 22:53:32 +09:00
parent 4f3ea0379e
commit 9036f1644f
2 changed files with 2 additions and 2 deletions

View File

@@ -2969,7 +2969,7 @@ ExpandOne (
mb_len = (* mb_ptr2len)(&xp->xp_files[0][len]);
c0 = (* mb_ptr2char)(&xp->xp_files[0][len]);
} else {
c0 = xp->xp_files[i][len];
c0 = xp->xp_files[0][len];
}
for (i = 1; i < xp->xp_numfiles; ++i) {
if (has_mbyte) {