summaryrefslogtreecommitdiff
path: root/src/testdir/test_vim9_expr.vim
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/testdir/test_vim9_expr.vim
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/testdir/test_vim9_expr.vim')
-rw-r--r--src/testdir/test_vim9_expr.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_expr.vim b/src/testdir/test_vim9_expr.vim
index 01b453850..52237e33f 100644
--- a/src/testdir/test_vim9_expr.vim
+++ b/src/testdir/test_vim9_expr.vim
@@ -2853,6 +2853,7 @@ def Test_expr7_environment()
CheckDefAndScriptSuccess(lines)
CheckDefAndScriptFailure(["var x = $$$"], ['E1002:', 'E15:'], 1)
+ CheckDefAndScriptFailure(["$"], ['E1002:', 'E15:'], 1)
enddef
def Test_expr7_register()