mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06: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:
@@ -7234,9 +7234,9 @@ pow({x}, {y}) *pow()*
|
||||
|
||||
preinserted() *preinserted()*
|
||||
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`)
|
||||
|
Reference in New Issue
Block a user