summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-08-18 21:06:21 +0100
committerw0rp <devw0rp@gmail.com>2017-08-18 21:06:21 +0100
commit8cc7cd3aa14851f0c214c54b2c8affed448399ff (patch)
tree63d1d918e76593501a6dfc98dd8c0be4ac96f92d /test
parent41c4f3431c1a5ae2da8b0b859a92dbddc9fe7534 (diff)
downloadale-8cc7cd3aa14851f0c214c54b2c8affed448399ff.zip
Change the completeopt setting just before showing suggestions too, which works better
Diffstat (limited to 'test')
-rw-r--r--test/test_completion.vader8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_completion.vader b/test/test_completion.vader
index 8750872e..245f8db8 100644
--- a/test/test_completion.vader
+++ b/test/test_completion.vader
@@ -141,6 +141,14 @@ Execute(ale#completion#Show() should remember the completeopt setting and replac
AssertEqual 'menu', b:ale_old_completopt
AssertEqual 'menu,menuone,preview,noselect,noinsert', &l:completeopt
+Execute(ale#completion#OmniFunc() should also remember the completeopt setting and replace it):
+ let &l:completeopt = 'menu'
+
+ call ale#completion#OmniFunc(0, '')
+
+ AssertEqual 'menu', b:ale_old_completopt
+ AssertEqual 'menu,menuone,preview,noselect,noinsert', &l:completeopt
+
Execute(ale#completion#Show() should make the correct feedkeys() call):
call ale#completion#Show('Response', 'Parser')