aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-07-05 20:27:01 +0200
committerGitHub <noreply@github.com>2019-07-05 20:27:01 +0200
commit48efafc81c84624050cca810c4a6fe195f883ec8 (patch)
tree9727965422a6049bbb305cdba2a85a48a7a68548 /test/functional
parente7d49dcfb3058c2628874b1c7e8dfdb3944bafd9 (diff)
parent51a451570df5fe3775a09324fb2247bfa4cf48d9 (diff)
downloadrneovim-48efafc81c84624050cca810c4a6fe195f883ec8.tar.gz
rneovim-48efafc81c84624050cca810c4a6fe195f883ec8.tar.bz2
rneovim-48efafc81c84624050cca810c4a6fe195f883ec8.zip
Merge pull request #10398 from bfredl/resizeautocmd
screen: disable redrawing inside VimResized
Diffstat (limited to 'test/functional')
-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 ')