aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-09-08 09:47:10 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2020-11-01 19:14:56 +0100
commitc146eddc8b768f1cd395ea0ce54c19e64eff0c08 (patch)
treeda1fe59768dcc60901da66b18d848b2d81b6e072 /src/nvim/terminal.c
parent037ffd54dcd8edba6787d93273e6696b7a366ac6 (diff)
downloadrneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.tar.gz
rneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.tar.bz2
rneovim-c146eddc8b768f1cd395ea0ce54c19e64eff0c08.zip
api: add API for themes
co-author: hlpr98 <hlpr98@gmail.com> (dict2hlattrs function) orange is sus?? NOVEMBER DAWN erase the lie that is redraw_later()
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 52d3eef810..39e2ca6171 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -233,7 +233,7 @@ Terminal *terminal_open(TerminalOptions opts)
snprintf(var, sizeof(var), "terminal_color_%d", i);
char *name = get_config_string(var);
if (name) {
- color_val = name_to_color((uint8_t *)name);
+ color_val = name_to_color(name);
xfree(name);
if (color_val != -1) {
@@ -1060,7 +1060,7 @@ static bool send_mouse_event(Terminal *term, int c)
curwin->w_redr_status = true;
curwin = save_curwin;
curbuf = curwin->w_buffer;
- redraw_win_later(mouse_win, NOT_VALID);
+ redraw_later(mouse_win, NOT_VALID);
invalidate_terminal(term, -1, -1);
// Only need to exit focus if the scrolled window is the terminal window
return mouse_win == curwin;