summaryrefslogtreecommitdiffstats
path: root/src/autocmd.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-24 20:00:55 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-24 20:00:55 +0000
commitdff97e65eb1bb24c44c2b7430a480888d8afb3f4 (patch)
tree68e5fc1a4ce83826c7933cdbf91abb4bf497a894 /src/autocmd.c
parent50e05254450954f04183efc7bc871527a67868b8 (diff)
patch 8.2.4208: using setbufvar() may change the window titlev8.2.4208
Problem: Using setbufvar() may change the window title. Solution: Do not redraw when creating the autocommand window. (closes #9613)
Diffstat (limited to 'src/autocmd.c')
-rw-r--r--src/autocmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/autocmd.c b/src/autocmd.c
index 37f2480a88..a10be9b928 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1518,7 +1518,10 @@ aucmd_prepbuf(
p_acd = FALSE;
#endif
+ // no redrawing and don't set the window title
+ ++RedrawingDisabled;
(void)win_split_ins(0, WSP_TOP, aucmd_win, 0);
+ --RedrawingDisabled;
(void)win_comp_pos(); // recompute window positions
p_ea = save_ea;
#ifdef FEAT_AUTOCHDIR