Skip to content

Commit

Permalink
patch 8.2.5048: when using XIM the gui test may fail
Browse files Browse the repository at this point in the history
Problem:    When using XIM the gui test may fail.
Solution:   Only use --not-a-term when not using XIM.
  • Loading branch information
brammool committed May 31, 2022
1 parent 368137a commit b5912e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/testdir/test_gui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ func Test_gui_read_stdin()

" Cannot use --not-a-term here, the "reading from stdin" message would not be
" displayed.
let vimcmd = substitute(GetVimCommand(), '--not-a-term', '', '')
" However, when using XIM we might get E285, do use it then.
if has('xim')
let vimcmd = GetVimCommand()
else
let vimcmd = substitute(GetVimCommand(), '--not-a-term', '', '')
endif

call system('cat Xstdin | ' .. vimcmd .. ' -f -g -S Xscript -')
call assert_equal(['some', 'lines'], readfile('XstdinOK'))
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5048,
/**/
5047,
/**/
Expand Down

0 comments on commit b5912e0

Please sign in to comment.