summaryrefslogtreecommitdiff
path: root/src/testdir/test_getvar.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-14 19:05:39 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-14 19:05:39 +0100
commitee93b737aaa7bf65edc7281f429dd89fcf657a6f (patch)
tree9d9019b603e4d2e09baf7e3816c771dd66d70b4a /src/testdir/test_getvar.vim
parentc10b521628f2b073fa231defa26f23937c91724d (diff)
downloadvim-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.vim1
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