Change the completeopt setting just before showing suggestions too, which works better

This commit is contained in:
w0rp
2017-08-18 21:06:21 +01:00
parent 41c4f3431c
commit 8cc7cd3aa1
2 changed files with 19 additions and 5 deletions

View File

@@ -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')