comparison src/testdir/screendump.vim @ 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 eb960e9c75c8
children e9ffb5b35266
comparison
equal deleted inserted replaced
13528:8c37f578cb2f 13529:f5655d70484f
27 " Options is a dictionary (not used yet). 27 " Options is a dictionary (not used yet).
28 func RunVimInTerminal(arguments, options) 28 func RunVimInTerminal(arguments, options)
29 " If Vim doesn't exit a swap file remains, causing other tests to fail. 29 " If Vim doesn't exit a swap file remains, causing other tests to fail.
30 " Remove it here. 30 " Remove it here.
31 call delete(".swp") 31 call delete(".swp")
32
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
32 39
33 " Make a horizontal and vertical split, so that we can get exactly the right 40 " Make a horizontal and vertical split, so that we can get exactly the right
34 " size terminal window. Works only when we currently have one window. 41 " size terminal window. Works only when we currently have one window.
35 call assert_equal(1, winnr('$')) 42 call assert_equal(1, winnr('$'))
36 split 43 split