mirror of
https://github.com/neovim/neovim.git
synced 2025-09-05 19:08:15 +00:00
vim-patch:9.1.1559: tests: Test_popup_complete_info_01() fails when run alone
Problem: tests: Test_popup_complete_info_01() fails when run alone.
Solution: Set buffer-local competeopt+=noinsert and add missing cleanup
in Test_popup_complete() (zeertzjq).
closes: vim/vim#17773
12d274af44
This commit is contained in:
@@ -216,6 +216,8 @@ func Test_popup_complete()
|
||||
call feedkeys("aM\<f5>\<enter>\<esc>", 'tx')
|
||||
call assert_equal(["March", "M", "March"], getline(1,4))
|
||||
%d
|
||||
|
||||
set completeopt&
|
||||
endfunc
|
||||
|
||||
|
||||
@@ -1081,6 +1083,7 @@ func Test_popup_complete_info_01()
|
||||
setlocal thesaurus=Xdummy.txt
|
||||
setlocal omnifunc=syntaxcomplete#Complete
|
||||
setlocal completefunc=syntaxcomplete#Complete
|
||||
setlocal completeopt+=noinsert
|
||||
setlocal spell
|
||||
for [keys, mode_name] in [
|
||||
\ ["", ''],
|
||||
|
Reference in New Issue
Block a user