Mercurial > vim
diff src/autocmd.c @ 27360:dfaba853a792 v8.2.4208
patch 8.2.4208: using setbufvar() may change the window title
Commit: https://github.com/vim/vim/commit/dff97e65eb1bb24c44c2b7430a480888d8afb3f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 24 20:00:55 2022 +0000
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 https://github.com/vim/vim/issues/9613)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 24 Jan 2022 21:15:03 +0100 |
parents | b0ef52086d57 |
children | 269f89efb06a |
line wrap: on
line diff
--- 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