aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-10-22 14:53:45 +0200
committerGitHub <noreply@github.com>2018-10-22 14:53:45 +0200
commitf20427451e7f118d89d231cbab1faf8061369ddc (patch)
tree73553d90c1c010bcbe0e8cfef6edf97c61e671be /src/nvim/message.c
parent565bbd1485a4c884dbfdb65b8b1c04a0c5da6b3e (diff)
parente598811e76a4ee6666b680545097fb06b0ba59aa (diff)
downloadrneovim-f20427451e7f118d89d231cbab1faf8061369ddc.tar.gz
rneovim-f20427451e7f118d89d231cbab1faf8061369ddc.tar.bz2
rneovim-f20427451e7f118d89d231cbab1faf8061369ddc.zip
Merge pull request #9143 from bfredl/nuclear
disable clearing almost everywhere, cleanup screen.c dead code
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 5dafde5bd1..edce30e6fa 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -832,12 +832,11 @@ void msg_end_prompt(void)
lines_left = -1;
}
-/*
- * wait for the user to hit a key (normally a return)
- * if 'redraw' is TRUE, clear and redraw the screen
- * if 'redraw' is FALSE, just redraw the screen
- * if 'redraw' is -1, don't redraw at all
- */
+/// wait for the user to hit a key (normally a return)
+///
+/// if 'redraw' is true, redraw the entire screen NOT_VALID
+/// if 'redraw' is false, do a normal redraw
+/// if 'redraw' is -1, don't redraw at all
void wait_return(int redraw)
{
int c;
@@ -847,8 +846,9 @@ void wait_return(int redraw)
int save_Recording;
FILE *save_scriptout;
- if (redraw == TRUE)
- must_redraw = CLEAR;
+ if (redraw == true) {
+ redraw_all_later(NOT_VALID);
+ }
/* If using ":silent cmd", don't wait for a return. Also don't set
* need_wait_return to do it later. */