comparison src/eval.c @ 21461:4dfd00f481fb v8.2.1281

patch 8.2.1281: the "trailing characters" error can be hard to understand Commit: https://github.com/vim/vim/commit/2d06bfde29bd3a62fc85823d2aa719ef943bd319 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 23 17:16:18 2020 +0200 patch 8.2.1281: the "trailing characters" error can be hard to understand Problem: The "trailing characters" error can be hard to understand. Solution: Add the trailing characters to the message.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 17:30:03 +0200
parents 369cde0d5771
children 81c47a694479
comparison
equal deleted inserted replaced
21460:280fe8be34a2 21461:4dfd00f481fb
795 { 795 {
796 // Don't expand the name when we already know there is an error. 796 // Don't expand the name when we already know there is an error.
797 if (unlet && !VIM_ISWHITE(*p) && !ends_excmd(*p) 797 if (unlet && !VIM_ISWHITE(*p) && !ends_excmd(*p)
798 && *p != '[' && *p != '.') 798 && *p != '[' && *p != '.')
799 { 799 {
800 emsg(_(e_trailing)); 800 semsg(_(e_trailing_arg), p);
801 return NULL; 801 return NULL;
802 } 802 }
803 803
804 lp->ll_exp_name = make_expanded_name(name, expr_start, expr_end, p); 804 lp->ll_exp_name = make_expanded_name(name, expr_start, expr_end, p);
805 if (lp->ll_exp_name == NULL) 805 if (lp->ll_exp_name == NULL)