aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_popup.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-20 20:15:30 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-11-20 21:14:50 -0500
commitbebd1f9f7629c6150e7eadcf0d33e9c90c81add2 (patch)
tree3dba358941c46daa6be531488053f3a9e4dc4f51 /src/nvim/testdir/test_popup.vim
parent85761dd4269bff17e7607020bbb5ed9994afca61 (diff)
downloadrneovim-bebd1f9f7629c6150e7eadcf0d33e9c90c81add2.tar.gz
rneovim-bebd1f9f7629c6150e7eadcf0d33e9c90c81add2.tar.bz2
rneovim-bebd1f9f7629c6150e7eadcf0d33e9c90c81add2.zip
vim-patch:8.0.1731: characters deleted on completion
Problem: Characters deleted on completion. (Adrià Farrés) Solution: Also check the last item for the ORIGINAL_TEXT flag. (Christian Brabandt, closes vim/vim#1645) https://github.com/vim/vim/commit/e87edf3b85f607632e5431640071fdbc36b685b2
Diffstat (limited to 'src/nvim/testdir/test_popup.vim')
-rw-r--r--src/nvim/testdir/test_popup.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim
index c9cd04018c..09dc3ba43f 100644
--- a/src/nvim/testdir/test_popup.vim
+++ b/src/nvim/testdir/test_popup.vim
@@ -571,6 +571,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