aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-26 03:38:54 -0500
committerGitHub <noreply@github.com>2020-12-26 03:38:54 -0500
commitc64cce906e7ed828d331e1786c985ff7aa734546 (patch)
tree5f8913cf05a046d2ec23840915d8bb1884db768f /src/nvim/ex_cmds.c
parent84faeb07d0018c674c2bc730333fefae6123f366 (diff)
parent44bb7147e40743d9a70ee3a2663a7a7dacec7b13 (diff)
downloadrneovim-c64cce906e7ed828d331e1786c985ff7aa734546.tar.gz
rneovim-c64cce906e7ed828d331e1786c985ff7aa734546.tar.bz2
rneovim-c64cce906e7ed828d331e1786c985ff7aa734546.zip
Merge pull request #10848 from janlazo/vim-8.1.1189
vim-patch:8.1.{822,1189,1192}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 2a96db6a8c..6e08378ad4 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3712,8 +3712,9 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
redraw_later(curwin, SOME_VALID);
curwin->w_p_fen = save_p_fen;
- if (msg_row == Rows - 1)
- msg_didout = FALSE; /* avoid a scroll-up */
+ if (msg_row == Rows - 1) {
+ msg_didout = false; // avoid a scroll-up
+ }
msg_starthere();
i = msg_scroll;
msg_scroll = 0; /* truncate msg when
@@ -3732,8 +3733,8 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout,
typed = plain_vgetc();
no_mapping--;
- /* clear the question */
- msg_didout = FALSE; /* don't scroll up */
+ // clear the question
+ msg_didout = false; // don't scroll up
msg_col = 0;
gotocmdline(TRUE);