Patch 8.2.1543
Problem: Vim9: test with invalid SID is skipped in the GUI.
Solution: Read the CTRL-C that feedkeys() put in typeahead.
Files: src/testdir/test_vim9_script.vim
*** ../vim-8.2.1542/src/testdir/test_vim9_script.vim 2020-08-29 22:59:13.938898010 +0200
--- src/testdir/test_vim9_script.vim 2020-08-29 23:55:02.869320153 +0200
***************
*** 2364,2369 ****
--- 2364,2371 ----
assert_equal(100, x)
endtry
assert_true(caught, 'should have caught an exception')
+ # consume the CTRL-C
+ getchar(0)
enddef
def Test_automatic_line_continuation()
***************
*** 3177,3183 ****
" caught
endtry
! call delete('Xvim9script.vium')
endfunc
def Test_vim9_copen()
--- 3179,3185 ----
" caught
endtry
! call delete('Xvim9script.vim')
endfunc
def Test_vim9_copen()
***************
*** 3261,3270 ****
enddef
def Test_invalid_sid()
- # TODO: why does this not work in the GUI?
- CheckNotGui
-
assert_fails('func <SNR>1234_func', 'E123:')
if RunVim([], ['wq Xdidit'], '+"func <SNR>1_func"')
call assert_equal([], readfile('Xdidit'))
endif
--- 3263,3270 ----
enddef
def Test_invalid_sid()
assert_fails('func <SNR>1234_func', 'E123:')
+
if RunVim([], ['wq Xdidit'], '+"func <SNR>1_func"')
call assert_equal([], readfile('Xdidit'))
endif
*** ../vim-8.2.1542/src/version.c 2020-08-29 22:59:13.938898010 +0200
--- src/version.c 2020-08-30 12:54:28.241163908 +0200
***************
*** 756,757 ****
--- 756,759 ----
{ /* Add new patch number below this line */
+ /**/
+ 1543,
/**/
--
TALL KNIGHT OF NI: Ni!
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///