diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-07-14 14:29:53 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-06 21:56:39 -0400 |
commit | e105e1242a87ed413190ca213c4944393e6089b3 (patch) | |
tree | e2d8937eb5718c409169a1ff38bccec64d7a6d2e /src | |
parent | 11bd0b887080574e9596449be1226729a1ae7d98 (diff) | |
download | rneovim-e105e1242a87ed413190ca213c4944393e6089b3.tar.gz rneovim-e105e1242a87ed413190ca213c4944393e6089b3.tar.bz2 rneovim-e105e1242a87ed413190ca213c4944393e6089b3.zip |
vim-patch:8.0.1600: crash when setting t_Co to zero when 'termguicolors' is set
Problem: Crash when setting t_Co to zero when 'termguicolors' is set.
Solution: Use IS_CTERM instead of checking the number of colors.
(closes vim/vim#2710)
https://github.com/vim/vim/commit/f708ac592f47100a36f2bc12ec98ea6357fdfa27
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 6ee994bb9a..ce6262c811 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -514,3 +514,17 @@ func Test_highlight_eol_on_diff() bwipe! diffoff endfunc + +func Test_termguicolors() + if !exists('+termguicolors') + return + endif + + " Basic test that setting 'termguicolors' works with one color. + set termguicolors + redraw + set t_Co=1 + redraw + set t_Co=0 + redraw +endfunc |