Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
29193:1e9e9d89f0ee | 29194:f92f658585e6 |
---|---|
4842 { | 4842 { |
4843 semsg(_(e_invalid_value_for_argument_str), "text_cb"); | 4843 semsg(_(e_invalid_value_for_argument_str), "text_cb"); |
4844 return; | 4844 return; |
4845 } | 4845 } |
4846 } | 4846 } |
4847 else if ((di = dict_find(d, (char_u *)"limit", -1)) != NULL) | 4847 |
4848 if ((di = dict_find(d, (char_u *)"limit", -1)) != NULL) | |
4848 { | 4849 { |
4849 if (di->di_tv.v_type != VAR_NUMBER) | 4850 if (di->di_tv.v_type != VAR_NUMBER) |
4850 { | 4851 { |
4851 semsg(_(e_invalid_argument_str), tv_get_string(&di->di_tv)); | 4852 semsg(_(e_invalid_argument_str), tv_get_string(&di->di_tv)); |
4852 return; | 4853 return; |