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:
zeertzjq
2025-09-29 06:17:37 +08:00
parent 7b9c063d11
commit e6b2255ac7
3 changed files with 6 additions and 6 deletions

View File

@@ -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