mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 18:48:24 +10:00
Problem: Restoring help snapshot accesses freed memory. (Dominique Pelle)
Solution: Don't restore a snapshot when the window closes.
343b8c0429
17 lines
240 B
VimL
17 lines
240 B
VimL
|
|
" Tests for :help
|
|
|
|
func Test_help_restore_snapshot()
|
|
help
|
|
set buftype=
|
|
help
|
|
edit x
|
|
help
|
|
helpclose
|
|
endfunc
|
|
|
|
func Test_help_errors()
|
|
call assert_fails('help doesnotexist', 'E149:')
|
|
call assert_fails('help!', 'E478:')
|
|
endfunc
|