From cb12c8fa47c785eeb2264784235e4b997be8bd9c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 10 May 2025 07:14:01 +0800 Subject: [PATCH] vim-patch:9973b39: runtime(doc): remove duplicate sentence in builtin.txt https://github.com/vim/vim/commit/9973b39a17095e6d77b25aafb73a317cebcf586e Co-authored-by: Christian Brabandt --- runtime/doc/builtin.txt | 2 -- runtime/lua/vim/_meta/vimfn.lua | 2 -- src/nvim/eval.lua | 1 - 3 files changed, 5 deletions(-) diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 60376859d8..3ff4406eed 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1528,8 +1528,6 @@ cursor({list}) position within a or after the last character. Returns 0 when the position could be set, -1 otherwise. - Returns 0 when the position could be set, -1 otherwise. - Parameters: ~ • {list} (`integer[]`) diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index fbaa39d021..f07ea9a20f 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -1350,8 +1350,6 @@ function vim.fn.cursor(lnum, col, off) end --- position within a or after the last character. --- Returns 0 when the position could be set, -1 otherwise. --- ---- Returns 0 when the position could be set, -1 otherwise. ---- --- @param list integer[] --- @return any function vim.fn.cursor(list) end diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 86b9b47f11..cc1f85b614 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -1779,7 +1779,6 @@ M.funcs = { position within a or after the last character. Returns 0 when the position could be set, -1 otherwise. - Returns 0 when the position could be set, -1 otherwise. ]=], name = 'cursor', params = { { 'list', 'integer[]' } },