aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-02-01 09:26:19 +0800
committerGitHub <noreply@github.com>2024-02-01 09:26:19 +0800
commit68c1b1c45a504341f7cf01f0bce0d1ed16631cfc (patch)
tree5ff831a00b3dd060c50f13ea686a1aaf60a6cd79
parent0a8e66898d73ee90a9c52d0944141f498804c99d (diff)
downloadrneovim-68c1b1c45a504341f7cf01f0bce0d1ed16631cfc.tar.gz
rneovim-68c1b1c45a504341f7cf01f0bce0d1ed16631cfc.tar.bz2
rneovim-68c1b1c45a504341f7cf01f0bce0d1ed16631cfc.zip
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 <Bram@vim.org>
-rw-r--r--test/old/testdir/test_getvar.vim1
1 files changed, 1 insertions, 0 deletions
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