Mercurial > vim
comparison src/testdir/test_quickfix.vim @ 14111:678e326bf7eb v8.1.0073
patch 8.1.0073: crash when autocommands call setloclist()
commit https://github.com/vim/vim/commit/0366c0161e988e32420d2f37111a60129684905b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 18 20:52:13 2018 +0200
patch 8.1.0073: crash when autocommands call setloclist()
Problem: Crash when autocommands call setloclist(). (Dominique Pelle)
Solution: If the quickfix list changes then don't jump to the error.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 18 Jun 2018 21:00:07 +0200 |
parents | 59e76d550c10 |
children | ca6ccee4823f |
comparison
equal
deleted
inserted
replaced
14110:50678c288c53 | 14111:678e326bf7eb |
---|---|
3360 lbuffer | 3360 lbuffer |
3361 augroup nasty | 3361 augroup nasty |
3362 au! | 3362 au! |
3363 augroup END | 3363 augroup END |
3364 endfunc | 3364 endfunc |
3365 | |
3366 func Test_setloclist_in_aucmd() | |
3367 " This was using freed memory. | |
3368 augroup nasty | |
3369 au * * call setloclist(0, [], 'f') | |
3370 augroup END | |
3371 lexpr "x" | |
3372 augroup nasty | |
3373 au! | |
3374 augroup END | |
3375 endfunc |