runtime(doc): improve preinserted() doc

Commit: 
https://github.com/vim/vim/commit/4edaf8923335504c31810dc4c5213eaba84e7898
Author: zeertzjq <[email protected]>
Date:   Sat Sep 27 12:17:09 2025 +0000

    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: #18409
    
    Signed-off-by: zeertzjq <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 0a73928e9..409588b2b 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -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|
 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1v2U44-00EkEE-DN%40256bit.org.

Raspunde prin e-mail lui