Mercurial > vim
diff src/testdir/test_quickfix.vim @ 13078:a1f8939a4644 v8.0.1414
patch 8.0.1414: accessing freed memory in :lfile.
commit https://github.com/vim/vim/commit/14a4deb064610c30a50f00d524dde9b3292aad59
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Dec 19 16:48:55 2017 +0100
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 #2473)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Dec 2017 17:00:08 +0100 |
parents | 66c014c71dad |
children | a0c6910e7fa4 |
line wrap: on
line diff
--- a/src/testdir/test_quickfix.vim +++ b/src/testdir/test_quickfix.vim @@ -3031,3 +3031,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