comparison src/testdir/test_quickfix.vim @ 10346:d52d97bf675e v8.0.0068

commit https://github.com/vim/vim/commit/21662be2211675824df1771c7f169948ede40c41 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 6 14:46:44 2016 +0100 patch 8.0.0068 Problem: Checking did_throw after executing autocommands is wrong. (Daniel Hahler) Solution: Call aborting() instead, and only when autocommands were executed.
author Christian Brabandt <cb@256bit.org>
date Sun, 06 Nov 2016 15:00:05 +0100
parents 92fa8e5ef210
children 4e4e116e3689
comparison
equal deleted inserted replaced
10345:a3caf1546431 10346:d52d97bf675e
1629 \ 'postcgetbuffer', 1629 \ 'postcgetbuffer',
1630 \ 'precaddbuffer', 1630 \ 'precaddbuffer',
1631 \ 'postcaddbuffer'] 1631 \ 'postcaddbuffer']
1632 call assert_equal(l, g:acmds) 1632 call assert_equal(l, g:acmds)
1633 endfunction 1633 endfunction
1634
1635 function! Test_Autocmd_Exception()
1636 set efm=%m
1637 lgetexpr '?'
1638
1639 try
1640 call DoesNotExit()
1641 catch
1642 lgetexpr '1'
1643 finally
1644 lgetexpr '1'
1645 endtry
1646
1647 call assert_equal('1', getloclist(0)[0].text)
1648
1649 set efm&vim
1650 endfunction