From c830901e8cde49467d1c99c2d656a13e51979790 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 17 Dec 2024 12:40:30 +0800 Subject: vim-patch:9.1.0936: cannot highlight completed text Problem: cannot highlight completed text Solution: (optionally) highlight auto-completed text using the ComplMatchIns highlight group (glepnir) closes: vim/vim#16173 https://github.com/vim/vim/commit/6a38aff218f5b99a1aed7edaa357df24b9092734 Co-authored-by: glepnir --- runtime/colors/vim.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/colors/vim.lua') diff --git a/runtime/colors/vim.lua b/runtime/colors/vim.lua index 5b9309ab38..dd3e83c653 100644 --- a/runtime/colors/vim.lua +++ b/runtime/colors/vim.lua @@ -60,6 +60,7 @@ hi('PmenuMatch', { link = 'Pmenu' }) hi('PmenuMatchSel', { link = 'PmenuSel' }) hi('PmenuExtra', { link = 'Pmenu' }) hi('PmenuExtraSel', { link = 'PmenuSel' }) +hi('ComplMatchIns', { link = 'Normal' }) hi('Substitute', { link = 'Search' }) hi('Whitespace', { link = 'NonText' }) hi('MsgSeparator', { link = 'StatusLine' }) -- cgit From 02bc40c19401ea9f7529cbc81bd18bd01c39bb3c Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 19 Dec 2024 07:59:03 +0800 Subject: vim-patch:9.1.0945: ComplMatchIns highlight doesn't end after inserted text (#31628) Problem: ComplMatchIns highlight doesn't end after inserted text. Solution: Handle ComplMatchIns highlight more like search highlight. Fix off-by-one error. Handle deleting text properly. (zeertzjq) closes: vim/vim#16244 https://github.com/vim/vim/commit/f25d8f9312a24da2727671560a865888812ab8d9 --- runtime/colors/vim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/colors/vim.lua') diff --git a/runtime/colors/vim.lua b/runtime/colors/vim.lua index dd3e83c653..dd59e5075d 100644 --- a/runtime/colors/vim.lua +++ b/runtime/colors/vim.lua @@ -60,7 +60,7 @@ hi('PmenuMatch', { link = 'Pmenu' }) hi('PmenuMatchSel', { link = 'PmenuSel' }) hi('PmenuExtra', { link = 'Pmenu' }) hi('PmenuExtraSel', { link = 'PmenuSel' }) -hi('ComplMatchIns', { link = 'Normal' }) +hi('ComplMatchIns', {}) hi('Substitute', { link = 'Search' }) hi('Whitespace', { link = 'NonText' }) hi('MsgSeparator', { link = 'StatusLine' }) -- cgit