aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.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/ex_cmds.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/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 3669cbbd2d..41137bf2db 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3721,8 +3721,8 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
update_topline();
validate_cursor();
update_screen(SOME_VALID);
- highlight_match = FALSE;
- redraw_later(SOME_VALID);
+ highlight_match = false;
+ redraw_later(curwin, SOME_VALID);
curwin->w_p_fen = save_p_fen;
if (msg_row == Rows - 1)
@@ -5751,7 +5751,7 @@ static buf_T *show_sub(exarg_T *eap, pos_T old_cusr,
}
xfree(str);
- redraw_later(SOME_VALID);
+ redraw_later(curwin, SOME_VALID);
win_enter(save_curwin, false); // Return to original window
update_topline();