comparison src/testdir/test_gui.vim @ 19997:3d1de9093c01 v8.2.0554

patch 8.2.0554: the GUI doesn't set t_Co Commit: https://github.com/vim/vim/commit/acc770a10f65107131473ea2ab4ae5d429dfe172 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 15:11:06 2020 +0200 patch 8.2.0554: the GUI doesn't set t_Co Problem: The GUI doesn't set t_Co. Solution: In the GUI set t_Co to 256 * 256 * 256. (closes https://github.com/vim/vim/issues/5903)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 15:15:04 +0200
parents 2c4d9ca33769
children 6bcd12791bf1
comparison
equal deleted inserted replaced
19996:f486b806468f 19997:3d1de9093c01
29 call balloon_show('hi!') 29 call balloon_show('hi!')
30 endif 30 endif
31 endfunc 31 endfunc
32 32
33 func Test_colorscheme() 33 func Test_colorscheme()
34 call assert_equal('16777216', &t_Co)
35
34 let colorscheme_saved = exists('g:colors_name') ? g:colors_name : 'default' 36 let colorscheme_saved = exists('g:colors_name') ? g:colors_name : 'default'
35 let g:color_count = 0 37 let g:color_count = 0
36 augroup TestColors 38 augroup TestColors
37 au! 39 au!
38 au ColorScheme * let g:color_count += 1| let g:after_colors = g:color_count 40 au ColorScheme * let g:color_count += 1| let g:after_colors = g:color_count