patch 9.1.1854: unnecessary code in optionstr.c

Commit: 
https://github.com/vim/vim/commit/91959a797d5017ee07b90c7516de91f40e11f048
Author: Hirohito Higashi <[email protected]>
Date:   Mon Oct 13 19:06:04 2025 +0000

    patch 9.1.1854: unnecessary code in optionstr.c
    
    Problem:  unnecessary code in optionstr.c
    Solution: Remove it (Hirohito Higashi)
    
    fixes: #18551
    closes: #18554
    
    Signed-off-by: Hirohito Higashi <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/optionstr.c b/src/optionstr.c
index 3dde2c2ad..b50aed547 100644
--- a/src/optionstr.c
+++ b/src/optionstr.c
@@ -1703,9 +1703,6 @@ did_set_completeopt(optset_T *args UNUSED)
        // When using :set, clear the local flags.
        curbuf->b_cot_flags = 0;
 
-    if (check_opt_strings(cot, p_cot_values, TRUE) != OK)
-       return e_invalid_argument;
-
     if (opt_strings_flags(cot, p_cot_values, flags, TRUE) != OK)
        return e_invalid_argument;
 
diff --git a/src/version.c b/src/version.c
index 100595d66..50a40d38a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1854,
 /**/
     1853,
 /**/

-- 
-- 
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/E1v8O0j-00Cjnj-8T%40256bit.org.

Raspunde prin e-mail lui