diff options
| author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-07-23 11:23:00 +0900 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-08-01 03:07:49 -0400 |
| commit | 172cf079c7a7f20e557e611d3160962794644a4f (patch) | |
| tree | 3bbe44fcab56631af563ea79f26a15204a895db5 /src/nvim/testdir | |
| parent | 2cd3a2d1d858e7c39dd59ed09b708d8a38c3d9a5 (diff) | |
| download | rneovim-172cf079c7a7f20e557e611d3160962794644a4f.tar.gz rneovim-172cf079c7a7f20e557e611d3160962794644a4f.tar.bz2 rneovim-172cf079c7a7f20e557e611d3160962794644a4f.zip | |
vim-patch:7.4.2013, vim-patch:7.4.2014
vim-patch:7.4.2013
Problem: Using "noinsert" in 'completeopt' breaks redo.
Solution: Set compl_curr_match. (Shougo, closes vim/vim#874)
https://github.com/vim/vim/commit/67081e50616ae9546621072c5eaaa59bd0a4bed7
vim-patch:7.4.2014
Problem: Using "noinsert" in 'completeopt' does not insert match.
Solution: Set compl_enter_selects. (Shougo, closes #875)
https://github.com/vim/vim/commit/32b808a4bdf35b0dea63c735702a591e5869fecd
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_alot.vim | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_popup.vim | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_alot.vim b/src/nvim/testdir/test_alot.vim index ad9b2cce8b..14ea73818a 100644 --- a/src/nvim/testdir/test_alot.vim +++ b/src/nvim/testdir/test_alot.vim @@ -4,4 +4,5 @@ source test_assign.vim source test_cursor_func.vim source test_menu.vim +source test_popup.vim source test_unlet.vim diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim new file mode 100644 index 0000000000..78fc81e3d2 --- /dev/null +++ b/src/nvim/testdir/test_popup.vim @@ -0,0 +1,30 @@ +" Test for completion menu + +function! ComplTest() abort + call complete(1, ['source', 'soundfold']) + return '' +endfunction + +function! Test() abort + call complete(1, ['source', 'soundfold']) + return '' +endfunction + +func Test_noinsert_complete() + new + set completeopt+=noinsert + inoremap <F5> <C-R>=ComplTest()<CR> + call feedkeys("i\<F5>soun\<CR>\<CR>\<ESC>.", 'tx') + call assert_equal('soundfold', getline(1)) + call assert_equal('soundfold', getline(2)) + bwipe! + + new + inoremap <F5> <C-R>=Test()<CR> + call feedkeys("i\<F5>\<CR>\<ESC>", 'tx') + call assert_equal('source', getline(1)) + bwipe! + + set completeopt-=noinsert + iunmap <F5> +endfunc |