aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta/vimfn.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-09-30 09:54:02 +0800
committerGitHub <noreply@github.com>2025-09-30 09:54:02 +0800
commit77545c0f3c485f366a08b91c10ff48e42ca2fc49 (patch)
tree01a88c6aac6780136d29f4a089730f76b448f355 /runtime/lua/vim/_meta/vimfn.lua
parent4896178863dc912baaf68ddcddab28eecc8f00d7 (diff)
parent756e55dc490d98f9ec09885bb6261e8160ebf914 (diff)
downloadrneovim-77545c0f3c485f366a08b91c10ff48e42ca2fc49.tar.gz
rneovim-77545c0f3c485f366a08b91c10ff48e42ca2fc49.tar.bz2
rneovim-77545c0f3c485f366a08b91c10ff48e42ca2fc49.zip
Merge pull request #35962 from zeertzjq/vim-9.1.1797
vim-patch:9.1.{1797,1800,1810}
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
-rw-r--r--runtime/lua/vim/_meta/vimfn.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua
index 4302c3d689..830882c9c1 100644
--- a/runtime/lua/vim/_meta/vimfn.lua
+++ b/runtime/lua/vim/_meta/vimfn.lua
@@ -6554,6 +6554,14 @@ function vim.fn.perleval(expr) end
--- @return number
function vim.fn.pow(x, y) end
+--- Returns non-zero if text has been inserted after the cursor
+--- because "preinsert" is present in 'completeopt', or because
+--- "longest" is present in 'completeopt' while 'autocomplete'
+--- is active. Otherwise returns zero.
+---
+--- @return number
+function vim.fn.preinserted() end
+
--- Return the line number of the first line at or above {lnum}
--- that is not blank. Example: >vim
--- let ind = indent(prevnonblank(v:lnum - 1))