refactor: Rename get_term_attr_entry

Rename get_term_attr_entry to hl_get_term_attr, similar to
hl_get_syn_attr, hl_get_ui_attr.
This commit is contained in:
Justin M. Keyes
2018-11-26 01:26:07 +01:00
parent 271c5df416
commit a2d03d9b1a
3 changed files with 3 additions and 3 deletions

View File

@@ -178,7 +178,7 @@ void update_window_hl(win_T *wp, bool invalid)
} }
/// Get attribute code for forwarded :terminal highlights. /// 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, return get_attr_entry((HlEntry){ .attr= *aep, .kind = kHlTerminal,
.id1 = 0, .id2 = 0 }); .id1 = 0, .id2 = 0 });

View File

@@ -603,7 +603,7 @@ void terminal_get_line_attributes(Terminal *term, win_T *wp, int linenr,
int attr_id = 0; int attr_id = 0;
if (hl_attrs || vt_fg != -1 || vt_bg != -1) { if (hl_attrs || vt_fg != -1 || vt_bg != -1) {
attr_id = get_term_attr_entry(&(HlAttrs) { attr_id = hl_get_term_attr(&(HlAttrs) {
.cterm_ae_attr = (int16_t)hl_attrs, .cterm_ae_attr = (int16_t)hl_attrs,
.cterm_fg_color = vt_fg_idx, .cterm_fg_color = vt_fg_idx,
.cterm_bg_color = vt_bg_idx, .cterm_bg_color = vt_bg_idx,

View File

@@ -104,7 +104,7 @@ static void ui_thread_run(void *data)
static void ui_bridge_stop(UI *b) static void ui_bridge_stop(UI *b)
{ {
// Detach brigde first, so that "stop" is the last event the TUI loop // Detach bridge first, so that "stop" is the last event the TUI loop
// receives from the main thread. #8041 // receives from the main thread. #8041
ui_detach_impl(b); ui_detach_impl(b);
UIBridgeData *bridge = (UIBridgeData *)b; UIBridgeData *bridge = (UIBridgeData *)b;