Mercurial > vim
comparison src/testdir/test_highlight.vim @ 34809:a6e19365c34d v9.1.0277
patch 9.1.0277: Cannot highlight the Command-line
Commit: https://github.com/vim/vim/commit/be2b03c6eecea3eae5d460e3c19ee43b73b29928
Author: Shougo Matsushita <Shougo.Matsu@gmail.com>
Date: Mon Apr 8 22:11:50 2024 +0200
patch 9.1.0277: Cannot highlight the Command-line
Problem: Cannot highlight the Command-line
Solution: Add the MsgArea highlighting group
(Shougo Matsushita)
closes: #14327
Signed-off-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 08 Apr 2024 22:30:03 +0200 |
parents | f5ac23c97a9e |
children |
comparison
equal
deleted
inserted
replaced
34808:83de868083f2 | 34809:a6e19365c34d |
---|---|
851 func Test_highlight_User() | 851 func Test_highlight_User() |
852 CheckNotGui | 852 CheckNotGui |
853 hi User1 ctermfg=12 | 853 hi User1 ctermfg=12 |
854 redraw! | 854 redraw! |
855 call assert_equal('12', synIDattr(synIDtrans(hlID('User1')), 'fg')) | 855 call assert_equal('12', synIDattr(synIDtrans(hlID('User1')), 'fg')) |
856 hi clear | |
857 endfunc | |
858 | |
859 " Test for MsgArea highlighting | |
860 func Test_highlight_MsgArea() | |
861 CheckNotGui | |
862 hi MsgArea ctermfg=20 | |
863 redraw! | |
864 call assert_equal('20', synIDattr(synIDtrans(hlID('MsgArea')), 'fg')) | |
856 hi clear | 865 hi clear |
857 endfunc | 866 endfunc |
858 | 867 |
859 " Test for using RGB color values in a highlight group | 868 " Test for using RGB color values in a highlight group |
860 func Test_xxlast_highlight_RGB_color() | 869 func Test_xxlast_highlight_RGB_color() |