diff options
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c index 0034e1e9ff..aa16d44842 100644 --- a/src/search.c +++ b/src/search.c @@ -4111,6 +4111,9 @@ f_searchcount(typval_T *argvars, typval_T *rettv) if (rettv_dict_alloc(rettv) == FAIL) return; + if (in_vim9script() && check_for_opt_dict_arg(argvars, 0) == FAIL) + return; + if (shortmess(SHM_SEARCHCOUNT)) // 'shortmess' contains 'S' flag recompute = TRUE; |