Merge pull request #18870 from zbirenbaum/winhl-cursor

fix(highlight): let winhighlight use cursor
This commit is contained in:
bfredl 2022-06-07 14:52:35 +02:00 committed by GitHub
commit 057a280867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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.

View File

@ -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