aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-01 15:42:01 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-01 21:54:18 +0800
commit7d45f1a5e8d05000a174dac149b56217c82e0214 (patch)
treef0bb7697ae8708e1ed735715c23d35b55ff72fed /src/nvim/testdir
parent6963c2bdcd3cc2a2f0466b23152e80fc0d037a2c (diff)
downloadrneovim-7d45f1a5e8d05000a174dac149b56217c82e0214.tar.gz
rneovim-7d45f1a5e8d05000a174dac149b56217c82e0214.tar.bz2
rneovim-7d45f1a5e8d05000a174dac149b56217c82e0214.zip
vim-patch:8.2.1773: crash when calling mapset() with a list as first argument
Problem: Crash when calling mapset() with a list as first argument. Solution: Check for NULL. (closes vim/vim#7040) https://github.com/vim/vim/commit/1b9129809d8269acb8e7c79d8fc99c7976b4f76e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_maparg.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_maparg.vim b/src/nvim/testdir/test_maparg.vim
index abbee7db95..6b69def374 100644
--- a/src/nvim/testdir/test_maparg.vim
+++ b/src/nvim/testdir/test_maparg.vim
@@ -239,6 +239,8 @@ func Test_mapset()
iunmap K
let &cpo = cpo_save
bwipe!
+
+ call assert_fails('call mapset([], v:false, {})', 'E730:')
endfunc
func Check_ctrlb_map(d, check_alt)