comparison src/testdir/test_popup.vim @ 22742:f7f2d73ff85e v8.2.1919

patch 8.2.1919: assert_fails() setting emsg_silent changes normal execution Commit: https://github.com/vim/vim/commit/28ee892ac4197421b3317f195512ca64cc56a5b4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Oct 28 20:20:00 2020 +0100 patch 8.2.1919: assert_fails() setting emsg_silent changes normal execution Problem: Assert_fails() setting emsg_silent changes normal execution. Solution: Use a separate flag in_assert_fails.
author Bram Moolenaar <Bram@vim.org>
date Wed, 28 Oct 2020 20:30:04 +0100
parents 6a4806e326dd
children 8e0ec52cad85
comparison
equal deleted inserted replaced
22741:8c4ba2a7a44f 22742:f7f2d73ff85e
342 setlocal completefunc=DummyCompleteOne 342 setlocal completefunc=DummyCompleteOne
343 call setline(1, 'one') 343 call setline(1, 'one')
344 /^one 344 /^one
345 call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E578:') 345 call assert_fails('call feedkeys("A\<C-X>\<C-U>\<C-N>\<Esc>", "x")', 'E578:')
346 call assert_equal(winid, win_getid()) 346 call assert_equal(winid, win_getid())
347 call assert_equal('oneDEF', getline(1)) 347 call assert_equal('onedef', getline(1))
348 q! 348 q!
349 endfunc 349 endfunc
350 350
351 " Test that nothing happens if the 'completefunc' opens 351 " Test that nothing happens if the 'completefunc' opens
352 " a new window (no completion, no crash) 352 " a new window (no completion, no crash)