Commit: patch 9.1.1854: unnecessary code in optionstr.c

1 view
Skip to first unread message

Christian Brabandt

unread,
3:15 PM (7 hours ago) 3:15 PM
to vim...@googlegroups.com
patch 9.1.1854: unnecessary code in optionstr.c

Commit: https://github.com/vim/vim/commit/91959a797d5017ee07b90c7516de91f40e11f048
Author: Hirohito Higashi <h.eas...@gmail.com>
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 <h.eas...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

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,
/**/
Reply all
Reply to author
Forward
0 new messages