mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.2261: Vim9: boolean option gets string type
Problem: Vim9: boolean option gets string type. Solution: Check for VAR_BOOL. (closes #7588)
This commit is contained in:
@@ -2417,6 +2417,11 @@ def Test_expr7_option()
|
||||
&grepprg = test_null_string()
|
||||
assert_equal('', &grepprg)
|
||||
set grepprg&
|
||||
|
||||
# check matching type
|
||||
var bval: bool = &tgc
|
||||
var nval: number = &ts
|
||||
var sval: string = &path
|
||||
enddef
|
||||
|
||||
def Test_expr7_environment()
|
||||
|
Reference in New Issue
Block a user