diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-05 23:18:11 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-06-06 22:43:47 -0400 |
| commit | 0234d579a72a81349901c7ec4f7bca6b4bc6f132 (patch) | |
| tree | 17c524ed6ce4275204cdf51d3a1395f78c83c4f3 /src/nvim/testdir | |
| parent | 427140048b7cc8b48bdd53683247513acefb77ba (diff) | |
| download | rneovim-0234d579a72a81349901c7ec4f7bca6b4bc6f132.tar.gz rneovim-0234d579a72a81349901c7ec4f7bca6b4bc6f132.tar.bz2 rneovim-0234d579a72a81349901c7ec4f7bca6b4bc6f132.zip | |
vim-patch:8.0.1414: accessing freed memory in :lfile.
Problem: Accessing freed memory in :lfile.
Solution: Get the current window after executing autocommands. (Yegappan
Lakshmanan, closes vim/vim#2473)
https://github.com/vim/vim/commit/14a4deb064610c30a50f00d524dde9b3292aad59
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_quickfix.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index db84f6d4a1..9fbd3d25bd 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -3312,3 +3312,10 @@ func Test_ll_window_ctx() enew | only endfunc +" The following test used to crash vim +func Test_lfile_crash() + sp Xtest + au QuickFixCmdPre * bw + call assert_fails('lfile', 'E40') + au! QuickFixCmdPre +endfunc |