diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-14 19:05:39 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-14 19:05:39 +0100 |
commit | ee93b737aaa7bf65edc7281f429dd89fcf657a6f (patch) | |
tree | 9d9019b603e4d2e09baf7e3816c771dd66d70b4a /src/testdir/test_getvar.vim | |
parent | c10b521628f2b073fa231defa26f23937c91724d (diff) | |
download | vim-git-ee93b737aaa7bf65edc7281f429dd89fcf657a6f.tar.gz |
patch 8.2.0117: crash when using gettabwinvar() with invalid argumentsv8.2.0117
Problem: Crash when using gettabwinvar() with invalid arguments. (Yilin
Yang)
Solution: Use "curtab" if "tp" is NULL. (closes #5475)
Diffstat (limited to 'src/testdir/test_getvar.vim')
-rw-r--r-- | src/testdir/test_getvar.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_getvar.vim b/src/testdir/test_getvar.vim index 5a9654889..5da599136 100644 --- a/src/testdir/test_getvar.vim +++ b/src/testdir/test_getvar.vim @@ -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 |