1
0
forked from aniani/vim

patch 8.2.1795: Vim9: operators && and || have a confusing result

Problem:    Vim9: operators && and || have a confusing result.
Solution:   Make the result a boolean.
This commit is contained in:
Bram Moolenaar
2020-10-03 22:52:39 +02:00
parent 92f26c256e
commit 2bb2658bef
12 changed files with 254 additions and 216 deletions

View File

@@ -72,8 +72,8 @@ def Test_if_linebreak()
var lines =<< trim END
vim9script
if 1 &&
2
|| 3
true
|| 1
g:res = 42
endif
assert_equal(42, g:res)