diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-01-25 09:44:37 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-01-25 09:44:37 +0800 |
commit | dd21e21e9783293c168839e477078bb99b8c720f (patch) | |
tree | 96cab2bb6b20654d1ad761623c78ddde682fda2d /src | |
parent | 1b6ae2dbb0aa24748d44752407cd18b5abec1d0a (diff) | |
download | rneovim-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.c | 3 |
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; |