mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 16:36:30 +00:00
vim-patch:4edaf89: runtime(doc): improve preinserted() doc
Change the second "if" to "because", otherwise it may be misinterpreted
that preinserted() can return non-zero just because these options are
set.
closes: vim/vim#18409
4edaf89233
This commit is contained in:
4
runtime/lua/vim/_meta/vimfn.lua
generated
4
runtime/lua/vim/_meta/vimfn.lua
generated
@@ -6555,9 +6555,9 @@ function vim.fn.perleval(expr) end
|
||||
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 if
|
||||
--- because "preinsert" is present in 'completeopt', or because
|
||||
--- "longest" is present in 'completeopt' while 'autocomplete'
|
||||
--- is enabled. Otherwise returns zero.
|
||||
--- is active. Otherwise returns zero.
|
||||
---
|
||||
--- @return number
|
||||
function vim.fn.preinserted() end
|
||||
|
Reference in New Issue
Block a user