summaryrefslogtreecommitdiff
path: root/src/vim9expr.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-09 13:36:28 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-09 13:36:28 +0000
commit5f25c3855071bd7e26255c68bf458b1b5cf92f39 (patch)
tree7c5185450e9ab3f28dcbb80a6fb6735eac736980 /src/vim9expr.c
parentc14f667626ba677a767d474324306e39096dc43e (diff)
downloadvim-git-8.2.4049.tar.gz
patch 8.2.4049: Vim9: reading before the start of the line with "$"v8.2.4049
Problem: Vim9: reading before the start of the line with "$" by itself. Solution: Do not subtract one when reporting the error.
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r--src/vim9expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c
index 83c68a9ff..edaee5099 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -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;
}