diff src/search.c @ 29194:f92f658585e6 v8.2.5116

patch 8.2.5116: "limit" option of matchfuzzy() not always respected Commit: https://github.com/vim/vim/commit/47f1a55849a73cefe738a246798221e45448546a Author: Kazuyuki Miyagi <yuzu3886@gmail.com> Date: Fri Jun 17 18:30:03 2022 +0100 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 https://github.com/vim/vim/issues/10586)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Jun 2022 19:45:02 +0200
parents d1e263ecf634
children 87980a7936e7
line wrap: on
line diff
--- a/src/search.c
+++ b/src/search.c
@@ -4844,7 +4844,8 @@ do_fuzzymatch(typval_T *argvars, typval_
 		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)
 	    {