diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-04-09 07:20:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 07:20:49 +0800 |
commit | 2528093bbea8862ede0feb6eb29bdc5451a6313b (patch) | |
tree | 386a865693c0de178a5aa8b16386913664a8a7fb /test | |
parent | 66e86d3095447204d54991e98b83259e88affa9d (diff) | |
download | rneovim-2528093bbea8862ede0feb6eb29bdc5451a6313b.tar.gz rneovim-2528093bbea8862ede0feb6eb29bdc5451a6313b.tar.bz2 rneovim-2528093bbea8862ede0feb6eb29bdc5451a6313b.zip |
vim-patch:9.1.0277: Cannot highlight the Command-line (#28244)
Problem: Cannot highlight the Command-line
Solution: Add the MsgArea highlighting group
(Shougo Matsushita)
closes: vim/vim#14327
https://github.com/vim/vim/commit/be2b03c6eecea3eae5d460e3c19ee43b73b29928
Cherry-pick Test_highlight_User() from patch 8.2.1077.
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_highlight.vim | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/old/testdir/test_highlight.vim b/test/old/testdir/test_highlight.vim index bcaa1dac5d..0a64c63d30 100644 --- a/test/old/testdir/test_highlight.vim +++ b/test/old/testdir/test_highlight.vim @@ -825,6 +825,24 @@ func Test_highlight_cmd_errors() let &t_fo = "" endfunc +" Test for User group highlighting used in the statusline +func Test_highlight_User() + CheckNotGui + hi User1 ctermfg=12 + redraw! + call assert_equal('12', synIDattr(synIDtrans(hlID('User1')), 'fg')) + hi clear +endfunc + +" Test for MsgArea highlighting +func Test_highlight_MsgArea() + CheckNotGui + hi MsgArea ctermfg=20 + redraw! + call assert_equal('20', synIDattr(synIDtrans(hlID('MsgArea')), 'fg')) + hi clear +endfunc + " Test for using RGB color values in a highlight group func Test_xxlast_highlight_RGB_color() CheckCanRunGui |