Mercurial > vim
diff src/evalfunc.c @ 20647:8a2b86a39ef4 v8.2.0877
patch 8.2.0877: cannot get the search statistics
Commit: https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 1 17:28:35 2020 +0200
patch 8.2.0877: cannot get the search statistics
Problem: Cannot get the search statistics.
Solution: Add the searchcount() function. (Fujiwara Takuya, closes https://github.com/vim/vim/issues/4446)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 01 Jun 2020 17:30:04 +0200 |
parents | c2beb6baa42c |
children | 1fa0ace0ba65 |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -801,6 +801,7 @@ static funcentry_T global_functions[] = {"screenrow", 0, 0, 0, ret_number, f_screenrow}, {"screenstring", 2, 2, FEARG_1, ret_string, f_screenstring}, {"search", 1, 4, FEARG_1, ret_number, f_search}, + {"searchcount", 0, 1, FEARG_1, ret_dict_any, f_searchcount}, {"searchdecl", 1, 3, FEARG_1, ret_number, f_searchdecl}, {"searchpair", 3, 7, 0, ret_number, f_searchpair}, {"searchpairpos", 3, 7, 0, ret_list_number, f_searchpairpos},