diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-27 02:26:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-27 02:26:24 +0100 |
commit | 0653ed63a508f9c8934d4033e1116e5176ff4fc1 (patch) | |
tree | 7bc6ca50659f2e80d0105974a850f9f2f420bc9c /src/nvim/highlight.c | |
parent | 271c5df41603f5427540082a3f8790bca0fd7595 (diff) | |
parent | 7fdb45e0f8b2dfc367067c62e413dd8082d770d5 (diff) | |
download | rneovim-0653ed63a508f9c8934d4033e1116e5176ff4fc1.tar.gz rneovim-0653ed63a508f9c8934d4033e1116e5176ff4fc1.tar.bz2 rneovim-0653ed63a508f9c8934d4033e1116e5176ff4fc1.zip |
Merge #9028 'diff/highlight: low-priority CursorLine'
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index a104137d9e..89a41e73de 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -177,8 +177,26 @@ 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 get_term_attr_entry(HlAttrs *aep) +int hl_get_term_attr(HlAttrs *aep) { return get_attr_entry((HlEntry){ .attr= *aep, .kind = kHlTerminal, .id1 = 0, .id2 = 0 }); |