neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 057a280867be6b4edefb1d5fb959f0aa71e7c1a5
parent 1324e7f79eb840ad63af08cecf34c120b2a37a8c
Author: bfredl <bjorn.linse@gmail.com>
Date:   Tue,  7 Jun 2022 14:52:35 +0200

Merge pull request #18870 from zbirenbaum/winhl-cursor

fix(highlight): let winhighlight use cursor
Diffstat:
Msrc/nvim/highlight_defs.h | 2++
Mtest/functional/ui/cursor_spec.lua | 2+-
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/nvim/highlight_defs.h b/src/nvim/highlight_defs.h @@ -113,6 +113,7 @@ typedef enum { HLF_BORDER, // Floating window border HLF_WBR, // Window bars HLF_WBRNC, // Window bars of not-current windows + HLF_CU, // Cursor HLF_COUNT, // MUST be the last one } hlf_T; @@ -176,6 +177,7 @@ EXTERN const char *hlf_names[] INIT(= { [HLF_BORDER] = "FloatBorder", [HLF_WBR] = "WinBar", [HLF_WBRNC] = "WinBarNC", + [HLF_CU] = "Cursor", }); EXTERN int highlight_attr[HLF_COUNT]; // Highl. attr for each context. diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua @@ -212,7 +212,7 @@ describe('ui/cursor', function() if m.blinkwait then m.blinkwait = 700 end end if m.hl_id then - m.hl_id = 64 + m.hl_id = 60 m.attr = {background = Screen.colors.DarkGray} end if m.id_lm then m.id_lm = 65 end