]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1001: ComplMatchIns highlight hard to read on light background v9.1.1001
authorglepnir <glephunter@gmail.com>
Fri, 10 Jan 2025 19:08:20 +0000 (20:08 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 10 Jan 2025 19:08:20 +0000 (20:08 +0100)
Problem:  ComplMatchIns highlight hard to read on light background
          (after v9.1.0996)
Solution: define the highlighting group cleared, it should be configured in
          colorschemes separately (glepnir)

closes: #16414

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt
src/highlight.c
src/optiondefs.h
src/version.c

index 489415c780608f42b474dff19d86defc1eb9e1f6..780db60aba41fd77f79c3f6a9ecf65b472d9cebf 100644 (file)
@@ -1,4 +1,4 @@
-*options.txt*  For Vim version 9.1.  Last change: 2024 Dec 28
+*options.txt*  For Vim version 9.1.  Last change: 2025 Jan 10
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -4348,7 +4348,7 @@ A jump table for the options with a short description can be found at |Q_op|.
                                     #:TabLineSel,_:TabLineFill,!:CursorColumn,
                                     .:CursorLine,o:ColorColumn,q:QuickFixLine,
                                     z:StatusLineTerm,Z:StatusLineTermNC,
-                                    g:MsgArea")
+                                    g:MsgArea,h:ComplMatchIns")
                        global
        This option can be used to set highlighting mode for various
        occasions.  It is a comma-separated list of character pairs.  The
@@ -4368,6 +4368,7 @@ A jump table for the options with a short description can be found at |Q_op|.
        |hl-MoreMsg|     m  |more-prompt|
        |hl-ModeMsg|     M  Mode (e.g., "-- INSERT --")
        |hl-MsgArea|     g  |Command-line| and message area
+       |hl-ComplMatchIns| h  matched text of currently inserted completion
        |hl-LineNr|      n  line number for ":number" and ":#" commands, and
                            when 'number' or 'relativenumber' option is set.
        |hl-LineNrAbove|   a  line number above the cursor for when the
index f38abd86b6423724cd92cee82192ec0c50c00261..1a4c76d9439e3c2bb259ecc9bd303403f4d2f209 100644 (file)
@@ -262,8 +262,6 @@ static char *(highlight_init_both[]) = {
     "default link PmenuMatchSel PmenuSel",
     "default link PmenuExtra Pmenu",
     "default link PmenuExtraSel PmenuSel",
-    CENT("ComplMatchIns ctermfg=DarkGrey cterm=NONE",
-        "ComplMatchIns guifg=DarkGrey gui=NONE"),
     CENT("Normal cterm=NONE", "Normal gui=NONE"),
     NULL
 };
index f9b7eae1ff821e103c0026d6cc1ac68ab4d84b97..c7c96de298bfa49197c59c752cae78acc0cbb48c 100644 (file)
@@ -302,7 +302,7 @@ struct vimoption
 # define ISP_LATIN1 (char_u *)"@,161-255"
 #endif
 
-# define HIGHLIGHT_INIT "8:SpecialKey,~:EndOfBuffer,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,y:CurSearch,m:MoreMsg,M:ModeMsg,n:LineNr,a:LineNrAbove,b:LineNrBelow,N:CursorLineNr,G:CursorLineSign,O:CursorLineFold,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,k:PmenuMatch,<:PmenuMatchSel,[:PmenuKind,]:PmenuKindSel,{:PmenuExtra,}:PmenuExtraSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn,q:QuickFixLine,z:StatusLineTerm,Z:StatusLineTermNC,g:MsgArea"
+# define HIGHLIGHT_INIT "8:SpecialKey,~:EndOfBuffer,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,y:CurSearch,m:MoreMsg,M:ModeMsg,n:LineNr,a:LineNrAbove,b:LineNrBelow,N:CursorLineNr,G:CursorLineSign,O:CursorLineFold,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,k:PmenuMatch,<:PmenuMatchSel,[:PmenuKind,]:PmenuKindSel,{:PmenuExtra,}:PmenuExtraSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn,q:QuickFixLine,z:StatusLineTerm,Z:StatusLineTermNC,g:MsgArea,h:ComplMatchIns"
 
 // Default python version for pyx* commands
 #if defined(FEAT_PYTHON) && defined(FEAT_PYTHON3)
index baebd2b1c560d8dccdc092374a457c3653d9d486..77128722bdbd2258aa9f464b4b2eedf4e4b46209 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1001,
 /**/
     1000,
 /**/