1
0
forked from aniani/vim

patch 8.2.0117: crash when using gettabwinvar() with invalid arguments

Problem:    Crash when using gettabwinvar() with invalid arguments. (Yilin
            Yang)
Solution:   Use "curtab" if "tp" is NULL. (closes #5475)
This commit is contained in:
Bram Moolenaar
2020-01-14 19:05:39 +01:00
parent c10b521628
commit ee93b737aa
3 changed files with 5 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ func Test_var()
unlet def_dict
call assert_equal("", gettabwinvar(9, 2020, ''))
call assert_equal('', gettabwinvar(2, 3, '&nux'))
call assert_equal(1, gettabwinvar(2, 3, '&nux', 1))
tabonly