mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
vim-patch:8.2.3381: crash when using NULL list with sign functions (#29740)
Problem: Crash when using NULL list with sign functions.
Solution: Handle a NULL list like an empty list. (issue vim/vim#8260)
5c56da4de8
Nvim's TV_LIST_ITER_MOD() already checks for NULL.
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -2069,3 +2069,12 @@ func Test_sign_funcs_multi()
|
||||
enew!
|
||||
call delete("Xsign")
|
||||
endfunc
|
||||
|
||||
func Test_sign_null_list()
|
||||
eval v:_null_list->sign_define()
|
||||
eval v:_null_list->sign_placelist()
|
||||
eval v:_null_list->sign_undefine()
|
||||
eval v:_null_list->sign_unplacelist()
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user