To: vim_dev@googlegroups.com Subject: Patch 8.0.1638 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.0.1638 Problem: Popup test fails depending on environment variable. Solution: Reset $COLORFGBG when running Vim in a terminal. (closes #2693) Files: src/testdir/screendump.vim *** ../vim-8.0.1637/src/testdir/screendump.vim 2018-03-23 20:37:41.023286753 +0100 --- src/testdir/screendump.vim 2018-03-24 17:51:49.698215735 +0100 *************** *** 30,35 **** --- 30,42 ---- " 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('$')) *** ../vim-8.0.1637/src/version.c 2018-03-24 17:16:29.441976567 +0100 --- src/version.c 2018-03-24 17:52:38.410018573 +0100 *************** *** 768,769 **** --- 768,771 ---- { /* Add new patch number below this line */ + /**/ + 1638, /**/ -- Never go to the toilet in a paperless office. /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///