0
0
mirror of https://github.com/vim/vim.git synced 2025-10-03 05:14:07 -04:00

patch 8.2.1680: Vim9: line number for compare error is wrong

Problem:    Vim9: line number for compare error is wrong.
Solution:   Set SOURCING_LNUM. (closes #6936)
This commit is contained in:
Bram Moolenaar
2020-09-14 16:50:05 +02:00
parent 3bd8de40b4
commit eb26f4331f
3 changed files with 4 additions and 0 deletions

View File

@@ -481,6 +481,7 @@ def Test_expr4_equal()
set noignorecase
CheckDefFailure(["let x = 'a' == xxx"], 'E1001:', 1)
CheckDefExecFailure(['let items: any', 'eval 1', 'eval 2', 'if items == []', 'endif'], 'E691:', 4)
let bb = 0z3f
assert_equal(true, 0z3f == bb)