Mercurial > vim
diff src/testdir/test_vim9_expr.vim @ 27041:fc19375787dd v8.2.4049
patch 8.2.4049: Vim9: reading before the start of the line with "$"
Commit: https://github.com/vim/vim/commit/5f25c3855071bd7e26255c68bf458b1b5cf92f39
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 9 13:36:28 2022 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 09 Jan 2022 14:45:03 +0100 |
parents | 10d3105030ab |
children | 58cfcd3ed15b |
line wrap: on
line diff
--- 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()