1
0
forked from aniani/vim

patch 8.2.2216: Vim9: range with missing colon can be hard to spot

Problem:    Vim9: range with missing colon can be hard to spot.
Solution:   Include the start of the range in the error. (closes #7543)
This commit is contained in:
Bram Moolenaar
2020-12-25 19:25:45 +01:00
parent 56ce9ea3ea
commit 6e2c2c50ba
5 changed files with 7 additions and 5 deletions

View File

@@ -7727,7 +7727,7 @@ compile_def_function(ufunc_T *ufunc, int check_return_type, cctx_T *outer_cctx)
{
if (!starts_with_colon)
{
emsg(_(e_colon_required_before_a_range));
semsg(_(e_colon_required_before_range_str), cmd);
goto erret;
}
if (ends_excmd2(line, ea.cmd))