aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-26 01:26:07 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-11-27 01:14:55 +0100
commita2d03d9b1acc922e6fe1d7a9bae14027271ae7a6 (patch)
tree211ccd96a2f7e4edfcb6705a487b0c6003c84339 /src
parent271c5df41603f5427540082a3f8790bca0fd7595 (diff)
downloadrneovim-a2d03d9b1acc922e6fe1d7a9bae14027271ae7a6.tar.gz
rneovim-a2d03d9b1acc922e6fe1d7a9bae14027271ae7a6.tar.bz2
rneovim-a2d03d9b1acc922e6fe1d7a9bae14027271ae7a6.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/highlight.c2
-rw-r--r--src/nvim/terminal.c2
-rw-r--r--src/nvim/ui_bridge.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c
index a104137d9e..ae2b90d8a1 100644
--- a/src/nvim/highlight.c
+++ b/src/nvim/highlight.c
@@ -178,7 +178,7 @@ void update_window_hl(win_T *wp, bool invalid)
}
/// 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 });
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index d831979022..07722c68ac 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -603,7 +603,7 @@ void terminal_get_line_attributes(Terminal *term, win_T *wp, int linenr,
int attr_id = 0;
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_fg_color = vt_fg_idx,
.cterm_bg_color = vt_bg_idx,
diff --git a/src/nvim/ui_bridge.c b/src/nvim/ui_bridge.c
index ebd4651f4d..eb592694e6 100644
--- a/src/nvim/ui_bridge.c
+++ b/src/nvim/ui_bridge.c
@@ -104,7 +104,7 @@ static void ui_thread_run(void *data)
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
ui_detach_impl(b);
UIBridgeData *bridge = (UIBridgeData *)b;