aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorshadmansaleh <shadmansaleh3@gmail.com>2021-04-20 12:31:03 +0600
committershadmansaleh <shadmansaleh3@gmail.com>2021-05-09 06:37:01 +0600
commite498f265f46355ab782bfd87b6c85467da2845e3 (patch)
tree3f75a0552d0d4a9edbd1ffdd74f4b84b775b182b /src/nvim/eval.lua
parentf8173df4d7ecec239629921736340d3f4d1dcfd4 (diff)
downloadrneovim-e498f265f46355ab782bfd87b6c85467da2845e3.tar.gz
rneovim-e498f265f46355ab782bfd87b6c85467da2845e3.tar.bz2
rneovim-e498f265f46355ab782bfd87b6c85467da2845e3.zip
vim-patch:8.2.0877: cannot get the search statistics
Problem: Cannot get the search statistics. Solution: Add the searchcount() function. (Fujiwara Takuya, closes vim/vim#4446) https://github.com/vim/vim/commit/e8f5ec0d30b629d7166f0ad03434065d8bc822df Additional changes: - Tests weren't passing because the test ran assuming the cursor was at start of buffer but append() left the cursor at end of buffer . So cursor is moved to start of buffer after append. - searchcount() added to list of builtin functions.
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 148804e54c..dcf3821e7d 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -286,6 +286,7 @@ return {
screenpos={args=3},
screenrow={},
search={args={1, 4}},
+ searchcount={args={0,1}},
searchdecl={args={1, 3}},
searchpair={args={3, 7}},
searchpairpos={args={3, 7}},