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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user