mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.2254: Vim9: bool option type is number
Problem: Vim9: bool option type is number. Solution: Have get_option_value() return a different value for bool and number options. (closes #7583)
This commit is contained in:
@@ -45,6 +45,9 @@ def Test_assignment_bool()
|
||||
assert_equal(true, flag)
|
||||
flag = 1 && false
|
||||
assert_equal(false, flag)
|
||||
|
||||
var cp: bool = &cp
|
||||
var fen: bool = &l:fen
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
CheckDefAndScriptFailure(['var x: bool = 2'], 'E1012:')
|
||||
@@ -118,6 +121,8 @@ def Test_assignment()
|
||||
assert_equal('new', s:newVar)
|
||||
|
||||
set ts=7
|
||||
var ts: number = &ts
|
||||
assert_equal(7, ts)
|
||||
&ts += 1
|
||||
assert_equal(8, &ts)
|
||||
&ts -= 3
|
||||
|
Reference in New Issue
Block a user