diff src/userfunc.c @ 29531:9f93092fb3cc v9.0.0107

patch 9.0.0107: condition always has the same value Commit: https://github.com/vim/vim/commit/72981ac94ff7aeaa596d535448ee0bef46050acf Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Fri, 29 Jul 2022 21:00:04 +0200
parents a74398c432a4
children d19adfd545e2
line wrap: on
line diff
--- 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;