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>
vim_free(patc);
}
-#ifdef FEAT_VIMINFO
if (!fuzzy)
{
+#ifdef FEAT_VIMINFO
if (matches != NULL)
{
int i;
}
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);
test25 \
test26 \
test27 \
- test28
+ test28 \
+ test29
SCRIPTS_TINY_OUT = \
test10.out \
test25.out \
test26.out \
test27.out \
- test28.out
+ test28.out \
+ test29.out
# Tests for Vim9 script.
TEST_VIM9 = \
--- /dev/null
+Test for buffer name completion when 'wildoptions' contains "fuzzy"
+(Confirm that Vim does not crash)
+
+STARTTEST
+:set wildoptions=fuzzy
+:new buf_a
+:b buf_a\ 4
+:q!
+:set wildoptions&
+:$w! test.out
+:qa!
+ENDTEST
+
+I'm alive!
--- /dev/null
+I'm alive!
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 918,
/**/
917,
/**/