aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-21 03:51:33 +0100
committerGitHub <noreply@github.com>2018-11-21 03:51:33 +0100
commit684c7d9228c1707002410470ef6b981adf3c8eba (patch)
treec3d01a38eba4513621a0afee07c93a86d97410e6 /src/nvim/testdir
parent85761dd4269bff17e7607020bbb5ed9994afca61 (diff)
parent5d22d100f2a848b692c37dc5d413939c8ef7681f (diff)
downloadrneovim-684c7d9228c1707002410470ef6b981adf3c8eba.tar.gz
rneovim-684c7d9228c1707002410470ef6b981adf3c8eba.tar.bz2
rneovim-684c7d9228c1707002410470ef6b981adf3c8eba.zip
Merge #9261 'vim-patch:8.0.1731,8.1.0038'
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_popup.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim
index c9cd04018c..6c43cbc1dc 100644
--- a/src/nvim/testdir/test_popup.vim
+++ b/src/nvim/testdir/test_popup.vim
@@ -246,6 +246,10 @@ func! Test_popup_completion_insertmode()
iunmap <F5>
endfunc
+" TODO: Fix what breaks after this line.
+" - Do not use "q!", it may exit Vim if there is an error
+finish
+
func Test_noinsert_complete()
function! s:complTest1() abort
call complete(1, ['source', 'soundfold'])
@@ -571,6 +575,15 @@ func Test_completion_clear_candidate_list()
bw!
endfunc
+func Test_popup_complete_backwards()
+ new
+ call setline(1, ['Post', 'Port', 'Po'])
+ let expected=['Post', 'Port', 'Port']
+ call cursor(3,2)
+ call feedkeys("A\<C-X>". repeat("\<C-P>", 3). "rt\<cr>", 'tx')
+ call assert_equal(expected, getline(1,'$'))
+ bwipe!
+endfunc
func Test_popup_and_preview_autocommand()
" This used to crash Vim