From 893437512c51fb31b4f99b90357e2b15e5b0c73b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 21 Aug 2023 16:14:54 +0800 Subject: vim-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 vim/vim#9613) https://github.com/vim/vim/commit/dff97e65eb1bb24c44c2b7430a480888d8afb3f4 Co-authored-by: Bram Moolenaar --- test/functional/ui/title_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional') diff --git a/test/functional/ui/title_spec.lua b/test/functional/ui/title_spec.lua index 2247d2e80f..66c0ff5c9c 100644 --- a/test/functional/ui/title_spec.lua +++ b/test/functional/ui/title_spec.lua @@ -49,7 +49,7 @@ describe('title', function() end) it('calling setbufvar() to set an option in a hidden buffer from i_CTRL-R', function() - command([[inoremap =setbufvar(]]..buf2..[[, '&autoindent', 1) ? '' : '']]) + command([[inoremap =setbufvar(]]..buf2..[[, '&autoindent', 1) ?? '']]) feed('i') command('redraw!') screen:expect(function() -- cgit