aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/popupmenu_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-26 19:42:57 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-07-05 16:58:53 +0200
commit51a451570df5fe3775a09324fb2247bfa4cf48d9 (patch)
tree77441850b697e0566e91bd91d62901f2e9802104 /test/functional/ui/popupmenu_spec.lua
parent0d82aaf5866b954ab0fe4831df499a4713eeae35 (diff)
downloadrneovim-51a451570df5fe3775a09324fb2247bfa4cf48d9.tar.gz
rneovim-51a451570df5fe3775a09324fb2247bfa4cf48d9.tar.bz2
rneovim-51a451570df5fe3775a09324fb2247bfa4cf48d9.zip
screen: disable redrawing inside VimResized
Note: test doesn't fail on master. I cannot reproduce the glitches with -u NONE, probably it requires interfering events. But add some coverage for these checks at least.
Diffstat (limited to 'test/functional/ui/popupmenu_spec.lua')
-rw-r--r--test/functional/ui/popupmenu_spec.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/functional/ui/popupmenu_spec.lua b/test/functional/ui/popupmenu_spec.lua
index ffa803e7e1..9bfea28ed7 100644
--- a/test/functional/ui/popupmenu_spec.lua
+++ b/test/functional/ui/popupmenu_spec.lua
@@ -1152,6 +1152,50 @@ describe('builtin popupmenu', function()
]])
end)
+ it('behaves correcty with VimResized autocmd', function()
+ feed('isome long prefix before the ')
+ command("set completeopt+=noinsert,noselect")
+ command("autocmd VimResized * redraw!")
+ command("set linebreak")
+ funcs.complete(29, {'word', 'choice', 'text', 'thing'})
+ screen:expect([[
+ some long prefix before the ^ |
+ {1:~ }{n: word }|
+ {1:~ }{n: choice}|
+ {1:~ }{n: text }|
+ {1:~ }{n: thing }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {2:-- INSERT --} |
+ ]])
+
+ screen:try_resize(16,10)
+ screen:expect([[
+ some long |
+ prefix before |
+ the ^ |
+ {1:~ }{n: word }|
+ {1:~ }{n: choice }|
+ {1:~ }{n: text }|
+ {1:~ }{n: thing }|
+ {1:~ }|
+ {1:~ }|
+ {2:-- INSERT --} |
+ ]])
+ end)
+
it('works with rightleft window', function()
command("set rl")
feed('isome rightleft ')