diff src/testdir/test_getvar.vim @ 19114:3856047f2211 v8.2.0117

patch 8.2.0117: crash when using gettabwinvar() with invalid arguments Commit: https://github.com/vim/vim/commit/ee93b737aaa7bf65edc7281f429dd89fcf657a6f Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 14 19:05:39 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Tue, 14 Jan 2020 19:15:04 +0100
parents 9fac6d0de69a
children 94f05de75e9f
line wrap: on
line diff
--- 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