aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-07 11:40:52 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-08-07 11:40:54 -0400
commit2b229b816bcdbdd861a23fcdb80da1c97ff8d075 (patch)
treea3c43fa68afc726141dec2b5975b092f09a678d4 /src
parent14689461547b7a1bac2bcbc9e2c42689c3ea5351 (diff)
downloadrneovim-2b229b816bcdbdd861a23fcdb80da1c97ff8d075.tar.gz
rneovim-2b229b816bcdbdd861a23fcdb80da1c97ff8d075.tar.bz2
rneovim-2b229b816bcdbdd861a23fcdb80da1c97ff8d075.zip
window: no_display in restore_win() is bool
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c4
-rw-r--r--src/nvim/window.c10
2 files changed, 6 insertions, 8 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index c51ffbdc3c..b86c4efc95 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -10236,8 +10236,8 @@ static void f_gettabvar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
}
}
- /* restore previous notion of curwin */
- restore_win(oldcurwin, oldtabpage, TRUE);
+ // restore previous notion of curwin
+ restore_win(oldcurwin, oldtabpage, true);
}
if (!done && argvars[2].v_type != VAR_UNKNOWN) {
diff --git a/src/nvim/window.c b/src/nvim/window.c
index 814913725a..24f620822a 100644
--- a/src/nvim/window.c
+++ b/src/nvim/window.c
@@ -5502,12 +5502,10 @@ int switch_win(win_T **save_curwin, tabpage_T **save_curtab, win_T *win, tabpage
return OK;
}
-/*
- * Restore current tabpage and window saved by switch_win(), if still valid.
- * When "no_display" is TRUE the display won't be affected, no redraw is
- * triggered.
- */
-void restore_win(win_T *save_curwin, tabpage_T *save_curtab, int no_display)
+// Restore current tabpage and window saved by switch_win(), if still valid.
+// When "no_display" is true the display won't be affected, no redraw is
+// triggered.
+void restore_win(win_T *save_curwin, tabpage_T *save_curtab, bool no_display)
{
if (save_curtab != NULL && valid_tabpage(save_curtab)) {
if (no_display) {