aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-30 06:26:06 +0800
committerGitHub <noreply@github.com>2022-08-30 06:26:06 +0800
commitf58a9795990a3b324f66912e4ae33dae7eb7474d (patch)
treeb54832bd6d6b2b1a11aaf7c041a5a6fbf78537db /src/nvim/ex_cmds2.c
parente78e369a9d2db356cb6c3b3e4e50548fab1ee21d (diff)
downloadrneovim-f58a9795990a3b324f66912e4ae33dae7eb7474d.tar.gz
rneovim-f58a9795990a3b324f66912e4ae33dae7eb7474d.tar.bz2
rneovim-f58a9795990a3b324f66912e4ae33dae7eb7474d.zip
vim-patch:9.0.0318: clearing screen causes flicker (#19993)
Problem: Clearing screen causes flicker. Solution: Do not clear but redraw in more cases. Add () to "wait_return". https://github.com/vim/vim/commit/13608d851a0470ced30921428b3313c023d395d8 Only 2 lines of actual code change.
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 2ed2b5519b..11280eecbb 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -364,7 +364,7 @@ bool check_changed_any(bool hidden, bool unload)
exiting = false;
// When ":confirm" used, don't give an error message.
if (!(p_confirm || (cmdmod.cmod_flags & CMOD_CONFIRM))) {
- // There must be a wait_return for this message, do_buffer()
+ // There must be a wait_return() for this message, do_buffer()
// may cause a redraw. But wait_return() is a no-op when vgetc()
// is busy (Quit used from window menu), then make sure we don't
// cause a scroll up.