forked from aniani/vim
patch 8.2.4049: Vim9: reading before the start of the line with "$"
Problem: Vim9: reading before the start of the line with "$" by itself. Solution: Do not subtract one when reporting the error.
This commit is contained in:
@@ -1233,7 +1233,7 @@ compile_get_env(char_u **arg, cctx_T *cctx)
|
||||
len = get_env_len(arg);
|
||||
if (len == 0)
|
||||
{
|
||||
semsg(_(e_syntax_error_at_str), start - 1);
|
||||
semsg(_(e_syntax_error_at_str), start);
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user