patch 8.2.4208: using setbufvar() may change the window title
Problem: Using setbufvar() may change the window title.
Solution: Do not redraw when creating the autocommand window. (closes #9613)
diff --git a/src/autocmd.c b/src/autocmd.c
index 37f2480..a10be9b 100644
--- a/src/autocmd.c
+++ b/src/autocmd.c
@@ -1518,7 +1518,10 @@
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