From 5ae90c84eadb4ebc910824627fb91d386cf2bd48 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 2 Feb 2018 02:56:28 +0100 Subject: vim-patch:8.0.1402: crash with nasty autocommand Problem: Crash with nasty autocommand. (gy741, Dominique Pelle) Solution: Check that the new current buffer isn't wiped out. (closes vim/vim#2447) https://github.com/vim/vim/commit/9bca805ec49eb0d2d0d0b2093f418ff425500169 --- src/nvim/testdir/test_autocmd.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index f41c1983a9..16cf6965bd 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -434,6 +434,7 @@ func s:AutoCommandOptionSet(match) endfunc func Test_OptionSet() + throw 'skipped: Nvim does not support test_override()' if !has("eval") || !has("autocmd") || !exists("+autochdir") return endif @@ -573,6 +574,7 @@ func Test_OptionSet() endfunc func Test_OptionSet_diffmode() + throw 'skipped: Nvim does not support test_override()' call test_override('starting', 1) " 18: Changing an option when enetering diff mode new @@ -606,6 +608,7 @@ func Test_OptionSet_diffmode() endfunc func Test_OptionSet_diffmode_close() + throw 'skipped: Nvim does not support test_override()' call test_override('starting', 1) " 19: Try to close the current window when entering diff mode " should not segfault -- cgit