commit | 5f25c3855071bd7e26255c68bf458b1b5cf92f39 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 09 13:36:28 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 09 13:36:28 2022 +0000 |
tree | 7c5185450e9ab3f28dcbb80a6fb6735eac736980 | |
parent | c14f667626ba677a767d474324306e39096dc43e [diff] [blame] |
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.
diff --git a/src/vim9expr.c b/src/vim9expr.c index 83c68a9..edaee50 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c
@@ -1233,7 +1233,7 @@ 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; }