aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/title_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-21 16:14:54 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-21 16:16:22 +0800
commit893437512c51fb31b4f99b90357e2b15e5b0c73b (patch)
tree0ee3d77dd1c646fe2288538fa7b8bb597f65121e /test/functional/ui/title_spec.lua
parentdc01d68f27a0d80da62bac690e9ca4647bc70dd9 (diff)
downloadrneovim-893437512c51fb31b4f99b90357e2b15e5b0c73b.tar.gz
rneovim-893437512c51fb31b4f99b90357e2b15e5b0c73b.tar.bz2
rneovim-893437512c51fb31b4f99b90357e2b15e5b0c73b.zip
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 <Bram@vim.org>
Diffstat (limited to 'test/functional/ui/title_spec.lua')
-rw-r--r--test/functional/ui/title_spec.lua2
1 files changed, 1 insertions, 1 deletions
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 <F2> <C-R>=setbufvar(]]..buf2..[[, '&autoindent', 1) ? '' : ''<CR>]])
+ command([[inoremap <F2> <C-R>=setbufvar(]]..buf2..[[, '&autoindent', 1) ?? ''<CR>]])
feed('i<F2><Esc>')
command('redraw!')
screen:expect(function()