]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1854: unnecessary code in optionstr.c v9.1.1854
authorHirohito Higashi <h.east.727@gmail.com>
Mon, 13 Oct 2025 19:06:04 +0000 (19:06 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 13 Oct 2025 19:06:04 +0000 (19:06 +0000)
Problem:  unnecessary code in optionstr.c
Solution: Remove it (Hirohito Higashi)

fixes: #18551
closes: #18554

Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/optionstr.c
src/version.c

index 3dde2c2ad5cd3ee0bf91c9630a9c6a84fcfe4339..b50aed5479a43c7ebd6768de7ba31bab8199046e 100644 (file)
@@ -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;
 
index 100595d66543bd43ca1890e485cd7e6aa5654f0c..50a40d38a80737d9eb56837ebce15f3b8970293a 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1854,
 /**/
     1853,
 /**/