# HG changeset patch # User Bram Moolenaar # Date 1659121204 -7200 # Node ID 9f93092fb3cc6b17d39d1069dc6aac007e0b4d14 # Parent 600c14c4ba4457220a0a2f4cc26fc130c371f307 patch 9.0.0107: condition always has the same value Commit: https://github.com/vim/vim/commit/72981ac94ff7aeaa596d535448ee0bef46050acf Author: Bram Moolenaar Date: Fri Jul 29 19:50:41 2022 +0100 patch 9.0.0107: condition always has the same value Problem: Condition always has the same value. Solution: Remove the condition. diff --git a/src/userfunc.c b/src/userfunc.c --- a/src/userfunc.c +++ b/src/userfunc.c @@ -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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 107, +/**/ 106, /**/ 105,