]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): improve preinserted() doc
authorzeertzjq <zeertzjq@outlook.com>
Sat, 27 Sep 2025 12:17:09 +0000 (12:17 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 27 Sep 2025 12:17:09 +0000 (12:17 +0000)
Change the second "if" to "because", otherwise it may be misinterpreted
that preinserted() can return non-zero just because these options are
set.

closes: #18409

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt

index 0a73928e97f3f766b8f4b28bbaf084b93e9fe9a6..409588b2bf4a0e49859d906c5989a0aad137190d 100644 (file)
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2025 Sep 26
+*builtin.txt*  For Vim version 9.1.  Last change: 2025 Sep 27
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -8036,9 +8036,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 type: |Number|