mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.1.0918: tiny Vim crashes with fuzzy buffer completion
Problem: tiny Vim crashes with fuzzy buffer completion Solution: Adjust #ifdefs in ExpandBufnames() (826814741_6) closes: #16200 Signed-off-by: h-east <h.east.727@gmail.com> Signed-off-by: 826814741_6 <44406129+826814741-6@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
eed63f96d2
commit
dff3c9c1a7
@@ -2985,9 +2985,9 @@ ExpandBufnames(
|
||||
vim_free(patc);
|
||||
}
|
||||
|
||||
#ifdef FEAT_VIMINFO
|
||||
if (!fuzzy)
|
||||
{
|
||||
#ifdef FEAT_VIMINFO
|
||||
if (matches != NULL)
|
||||
{
|
||||
int i;
|
||||
@@ -3007,13 +3007,13 @@ ExpandBufnames(
|
||||
}
|
||||
vim_free(matches);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fuzzymatches_to_strmatches(fuzmatch, file, count, FALSE) == FAIL)
|
||||
return FAIL;
|
||||
}
|
||||
#endif
|
||||
|
||||
*num_file = count;
|
||||
return (count == 0 ? FAIL : OK);
|
||||
|
Reference in New Issue
Block a user