diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-24 20:00:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-24 20:00:55 +0000 |
commit | dff97e65eb1bb24c44c2b7430a480888d8afb3f4 (patch) | |
tree | 68e5fc1a4ce83826c7933cdbf91abb4bf497a894 /src/autocmd.c | |
parent | 50e05254450954f04183efc7bc871527a67868b8 (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.c | 3 |
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 |