aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-07 14:52:35 +0200
committerGitHub <noreply@github.com>2022-06-07 14:52:35 +0200
commit057a280867be6b4edefb1d5fb959f0aa71e7c1a5 (patch)
tree08170c860e66535380ad4c95c0ad522606610719
parent1324e7f79eb840ad63af08cecf34c120b2a37a8c (diff)
parentdf70a3abcd9b5fe7e18254f2764f38d05f42f0a3 (diff)
downloadrneovim-057a280867be6b4edefb1d5fb959f0aa71e7c1a5.tar.gz
rneovim-057a280867be6b4edefb1d5fb959f0aa71e7c1a5.tar.bz2
rneovim-057a280867be6b4edefb1d5fb959f0aa71e7c1a5.zip
Merge pull request #18870 from zbirenbaum/winhl-cursor
fix(highlight): let winhighlight use cursor
-rw-r--r--src/nvim/highlight_defs.h2
-rw-r--r--test/functional/ui/cursor_spec.lua2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/highlight_defs.h b/src/nvim/highlight_defs.h
index caf345386d..9084cb500c 100644
--- 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
index d61eebe3ea..a1423c98a8 100644
--- 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