1
0
forked from aniani/vim

patch 8.2.5116: "limit" option of matchfuzzy() not always respected

Problem:    "limit" option of matchfuzzy() not always respected.
Solution:   Remove "else". (Kazuyuki Miyagi, closes #10586)
This commit is contained in:
Kazuyuki Miyagi
2022-06-17 18:30:03 +01:00
committed by Bram Moolenaar
parent d592deb336
commit 47f1a55849
4 changed files with 14 additions and 3 deletions

View File

@@ -4844,7 +4844,8 @@ do_fuzzymatch(typval_T *argvars, typval_T *rettv, int retmatchpos)
return;
}
}
else if ((di = dict_find(d, (char_u *)"limit", -1)) != NULL)
if ((di = dict_find(d, (char_u *)"limit", -1)) != NULL)
{
if (di->di_tv.v_type != VAR_NUMBER)
{