]> granicus.if.org Git - vim/commitdiff
patch 9.0.0107: condition always has the same value v9.0.0107
authorBram Moolenaar <Bram@vim.org>
Fri, 29 Jul 2022 18:50:41 +0000 (19:50 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 29 Jul 2022 18:50:41 +0000 (19:50 +0100)
Problem:    Condition always has the same value.
Solution:   Remove the condition.

src/userfunc.c
src/version.c

index 9f8442277faf65aefde030fa26b67a6a1d860ff0..ae3e20202b8a377c8ffa069f6a0ff4be9d810214 100644 (file)
@@ -3997,10 +3997,7 @@ trans_function_name(
        {
            if (vim9script && lead == 2 && !ASCII_ISUPPER(*lv.ll_name))
            {
-               semsg(_(vim9script
-                          ? e_function_name_must_start_with_capital_str
-                          : e_function_name_must_start_with_capital_or_s_str),
-                                                                       start);
+               semsg(_(e_function_name_must_start_with_capital_str), start);
                goto theend;
            }
            lead = 3;
index 44ee33f7cf52b2ad981a6e2b2d6e653fadaee3e9..79802aa65d76645ec1f054fbc7a44f7a725e4def 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    107,
 /**/
     106,
 /**/