aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-25 09:44:37 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-25 09:44:37 +0800
commitdd21e21e9783293c168839e477078bb99b8c720f (patch)
tree96cab2bb6b20654d1ad761623c78ddde682fda2d /src
parent1b6ae2dbb0aa24748d44752407cd18b5abec1d0a (diff)
downloadrneovim-dd21e21e9783293c168839e477078bb99b8c720f.tar.gz
rneovim-dd21e21e9783293c168839e477078bb99b8c720f.tar.bz2
rneovim-dd21e21e9783293c168839e477078bb99b8c720f.zip
fix: set RedrawingDisabled before entering aucmd_win
Diffstat (limited to 'src')
-rw-r--r--src/nvim/autocmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/autocmd.c b/src/nvim/autocmd.c
index 463bd5e0e6..94ac389139 100644
--- a/src/nvim/autocmd.c
+++ b/src/nvim/autocmd.c
@@ -1160,7 +1160,10 @@ void aucmd_prepbuf(aco_save_T *aco, buf_T *buf)
// Prevent chdir() call in win_enter_ext(), through do_autochdir()
int save_acd = p_acd;
p_acd = false;
+ // no redrawing and don't set the window title
+ RedrawingDisabled++;
win_enter(aucmd_win, false);
+ RedrawingDisabled--;
p_acd = save_acd;
unblock_autocmds();
curwin = aucmd_win;