mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 20:18:32 +00:00
vim-patch:7.4.933
Problem: Crash when using longest completion match.
Solution: Fix array index.
e4eda3bc71
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user