Mercurial > vim
changeset 13529:f5655d70484f v8.0.1638
patch 8.0.1638: popup test fails depending on environment variable
commit https://github.com/vim/vim/commit/e7499ddc33508d3d341e96f84a0e7b95b2d6927c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 24 17:56:13 2018 +0100
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 https://github.com/vim/vim/issues/2693)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 24 Mar 2018 18:00:07 +0100 |
parents | 8c37f578cb2f |
children | 28031e9f0da4 |
files | src/testdir/screendump.vim src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/screendump.vim +++ b/src/testdir/screendump.vim @@ -30,6 +30,13 @@ func RunVimInTerminal(arguments, options " Remove it here. call delete(".swp") + if exists('$COLORFGBG') + " Clear $COLORFGBG to avoid 'background' being set to "dark", which will + " only be corrected if the response to t_RB is received, which may be too + " late. + let $COLORFGBG = '' + endif + " Make a horizontal and vertical split, so that we can get exactly the right " size terminal window. Works only when we currently have one window. call assert_equal(1, winnr('$'))