diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-31 20:24:24 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-11-27 01:14:55 +0100 |
commit | 60f845ca55a1b8b11a4eb390b1fed93a79e99ad5 (patch) | |
tree | 011aab33314cde1e96a07b7453606e457c431c5f /src/nvim/highlight.c | |
parent | 3283db4ecbe32c6f2bbf1c7ea3032ef4091d5444 (diff) | |
download | rneovim-60f845ca55a1b8b11a4eb390b1fed93a79e99ad5.tar.gz rneovim-60f845ca55a1b8b11a4eb390b1fed93a79e99ad5.tar.bz2 rneovim-60f845ca55a1b8b11a4eb390b1fed93a79e99ad5.zip |
diff/highlight: Show underline for low-priority CursorLine
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index ae2b90d8a1..89a41e73de 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -177,6 +177,24 @@ void update_window_hl(win_T *wp, bool invalid) } } +/// Gets HL_UNDERLINE highlight. +int hl_get_underline(void) +{ + return get_attr_entry((HlEntry){ + .attr = (HlAttrs){ + .cterm_ae_attr = (int16_t)HL_UNDERLINE, + .cterm_fg_color = 0, + .cterm_bg_color = 0, + .rgb_ae_attr = (int16_t)HL_UNDERLINE, + .rgb_fg_color = 0, + .rgb_bg_color = 0, + }, + .kind = kHlUI, + .id1 = 0, + .id2 = 0, + }); +} + /// Get attribute code for forwarded :terminal highlights. int hl_get_term_attr(HlAttrs *aep) { |