From 68c1b1c45a504341f7cf01f0bce0d1ed16631cfc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 1 Feb 2024 09:26:19 +0800 Subject: [PATCH] vim-patch:8.2.0117: crash when using gettabwinvar() with invalid arguments (#27280) Problem: Crash when using gettabwinvar() with invalid arguments. (Yilin Yang) Solution: Use "curtab" if "tp" is NULL. (closes vim/vim#5475) https://github.com/vim/vim/commit/ee93b737aaa7bf65edc7281f429dd89fcf657a6f Co-authored-by: Bram Moolenaar --- test/old/testdir/test_getvar.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/test/old/testdir/test_getvar.vim b/test/old/testdir/test_getvar.vim index 331f3cfe8a..1e29f49fb4 100644 --- a/test/old/testdir/test_getvar.vim +++ b/test/old/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