mirror of
https://github.com/neovim/neovim.git
synced 2025-12-17 11:55:34 +00:00
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
be2b03c6ee
Cherry-pick Test_highlight_User() from patch 8.2.1077.
Co-authored-by: Shougo Matsushita <Shougo.Matsu@gmail.com>
This commit is contained in:
@@ -4877,7 +4877,7 @@ MatchParen Character under the cursor or just before it, if it
|
|||||||
*hl-ModeMsg*
|
*hl-ModeMsg*
|
||||||
ModeMsg 'showmode' message (e.g., "-- INSERT --").
|
ModeMsg 'showmode' message (e.g., "-- INSERT --").
|
||||||
*hl-MsgArea*
|
*hl-MsgArea*
|
||||||
MsgArea Area for messages and cmdline.
|
MsgArea Area for messages and command-line, see also 'cmdheight'.
|
||||||
*hl-MsgSeparator*
|
*hl-MsgSeparator*
|
||||||
MsgSeparator Separator for scrolled messages |msgsep|.
|
MsgSeparator Separator for scrolled messages |msgsep|.
|
||||||
*hl-MoreMsg*
|
*hl-MoreMsg*
|
||||||
|
|||||||
@@ -61,7 +61,7 @@
|
|||||||
"-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel," \
|
"-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel," \
|
||||||
"[:PmenuKind,]:PmenuKindSel,{:PmenuExtra,}:PmenuExtraSel,x:PmenuSbar,X:PmenuThumb," \
|
"[:PmenuKind,]:PmenuKindSel,{:PmenuExtra,}:PmenuExtraSel,x:PmenuSbar,X:PmenuThumb," \
|
||||||
"*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn," \
|
"*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn," \
|
||||||
"q:QuickFixLine,0:Whitespace,I:NormalNC"
|
"q:QuickFixLine,g:MsgArea,0:Whitespace,I:NormalNC"
|
||||||
|
|
||||||
// Default values for 'errorformat'.
|
// Default values for 'errorformat'.
|
||||||
// The "%f|%l| %m" one is used for when the contents of the quickfix window is
|
// The "%f|%l| %m" one is used for when the contents of the quickfix window is
|
||||||
|
|||||||
@@ -825,6 +825,24 @@ func Test_highlight_cmd_errors()
|
|||||||
let &t_fo = ""
|
let &t_fo = ""
|
||||||
endfunc
|
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
|
" Test for using RGB color values in a highlight group
|
||||||
func Test_xxlast_highlight_RGB_color()
|
func Test_xxlast_highlight_RGB_color()
|
||||||
CheckCanRunGui
|
CheckCanRunGui
|
||||||
|
|||||||
Reference in New Issue
Block a user