aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.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/getchar.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/getchar.c')
-rw-r--r--src/nvim/getchar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index af3895b793..bb8cd5a1eb 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -1768,7 +1768,7 @@ static void getchar_common(typval_T *argvars, typval_T *rettv)
if (!ui_has_messages()) {
// redraw the screen after getchar()
- update_screen(UPD_CLEAR);
+ update_screen(UPD_NOT_VALID);
}
set_vim_var_nr(VV_MOUSE_WIN, 0);