mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 11:38:31 +00:00
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:
@@ -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 });
|
||||||
|
@@ -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,
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user