mirror of
https://github.com/vim/vim.git
synced 2025-10-11 06:34:16 -04:00
patch 8.2.0195: some tests fail when run in the GUI
Problem: Some tests fail when run in the GUI. Solution: Make sure the window width is enough. In the GUI run terminal Vim in the terminal, if possible.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
source shared.vim
|
||||
source term_util.vim
|
||||
|
||||
command -nargs=1 MissingFeature throw 'Skipped: ' .. <args> .. ' feature missing'
|
||||
|
||||
|
@@ -594,6 +594,8 @@ endfunc
|
||||
|
||||
func Test_wincolor()
|
||||
CheckScreendump
|
||||
" make sure the width is enough for the test
|
||||
set columns=80
|
||||
|
||||
let lines =<< trim END
|
||||
set cursorline cursorcolumn rnu
|
||||
@@ -686,7 +688,8 @@ func Test_1_highlight_Normalgroup_exists()
|
||||
endif
|
||||
endfunc
|
||||
|
||||
function Test_no_space_before_xxx()
|
||||
" Do this test last, sometimes restoring the columns doesn't work
|
||||
function Test_z_no_space_before_xxx()
|
||||
let l:org_columns = &columns
|
||||
set columns=17
|
||||
let l:hi_StatusLineTermNC = join(split(execute('hi StatusLineTermNC')))
|
||||
|
@@ -2331,7 +2331,7 @@ func Test_terminal_in_popup()
|
||||
in a popup window
|
||||
END
|
||||
call writefile(text, 'Xtext')
|
||||
let cmd = GetVimCommandClean()
|
||||
let cmd = GetVimCommandCleanTerm()
|
||||
let lines = [
|
||||
\ 'call setline(1, range(20))',
|
||||
\ 'hi PopTerm ctermbg=grey',
|
||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
195,
|
||||
/**/
|
||||
194,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user