comparison 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
comparison
equal deleted inserted replaced
29530:600c14c4ba44 29531:9f93092fb3cc
3995 { 3995 {
3996 if (!vim9_local) 3996 if (!vim9_local)
3997 { 3997 {
3998 if (vim9script && lead == 2 && !ASCII_ISUPPER(*lv.ll_name)) 3998 if (vim9script && lead == 2 && !ASCII_ISUPPER(*lv.ll_name))
3999 { 3999 {
4000 semsg(_(vim9script 4000 semsg(_(e_function_name_must_start_with_capital_str), start);
4001 ? e_function_name_must_start_with_capital_str
4002 : e_function_name_must_start_with_capital_or_s_str),
4003 start);
4004 goto theend; 4001 goto theend;
4005 } 4002 }
4006 lead = 3; 4003 lead = 3;
4007 } 4004 }
4008 if (vim9_local || (lv.ll_exp_name != NULL 4005 if (vim9_local || (lv.ll_exp_name != NULL