Skip to content

Commit e7499dd

Browse files
committed
patch 8.0.1638: popup test fails depending on environment variable
Problem: Popup test fails depending on environment variable. Solution: Reset $COLORFGBG when running Vim in a terminal. (closes #2693)
1 parent 897e63c commit e7499dd

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/testdir/screendump.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ func RunVimInTerminal(arguments, options)
3030
" Remove it here.
3131
call delete(".swp")
3232

33+
if exists('$COLORFGBG')
34+
" Clear $COLORFGBG to avoid 'background' being set to "dark", which will
35+
" only be corrected if the response to t_RB is received, which may be too
36+
" late.
37+
let $COLORFGBG = ''
38+
endif
39+
3340
" Make a horizontal and vertical split, so that we can get exactly the right
3441
" size terminal window. Works only when we currently have one window.
3542
call assert_equal(1, winnr('$'))

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,8 @@ static char *(features[]) =
766766

767767
static int included_patches[] =
768768
{ /* Add new patch number below this line */
769+
/**/
770+
1638,
769771
/**/
770772
1637,
771773
/**/

0 commit comments

Comments
 (0)