aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-06-20 02:17:00 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-06-20 08:17:00 +0200
commitb454d24e044e7fba6888e4b7727c8e0c03a352c4 (patch)
treec69ece03e660a8c073142f1ef95a2875faef07f1 /src/nvim/testdir
parent6e55c5997e03a757526048d9e677f45820accc3f (diff)
downloadrneovim-b454d24e044e7fba6888e4b7727c8e0c03a352c4.tar.gz
rneovim-b454d24e044e7fba6888e4b7727c8e0c03a352c4.tar.bz2
rneovim-b454d24e044e7fba6888e4b7727c8e0c03a352c4.zip
vim-patch:8.0.0669: CTRL-N at start of the buffer does not work correctly (#8600)
Problem: In Insert mode, CTRL-N at start of the buffer does not work correctly. (zuloloxi) Solution: Wrap around the start of the buffer. (Christian Brabandt) https://github.com/vim/vim/commit/24a9e348aa88a6c60ae0cdf5c4a777d8c03b08ca
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_popup.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_popup.vim b/src/nvim/testdir/test_popup.vim
index ea98379f04..2191e3144f 100644
--- a/src/nvim/testdir/test_popup.vim
+++ b/src/nvim/testdir/test_popup.vim
@@ -650,5 +650,19 @@ func Test_complete_func_mess()
set completefunc=
endfunc
+func Test_complete_CTRLN_startofbuffer()
+ new
+ call setline(1, [ 'organize(cupboard, 3, 2);',
+ \ 'prioritize(bureau, 8, 7);',
+ \ 'realize(bannister, 4, 4);',
+ \ 'moralize(railing, 3,9);'])
+ let expected=['cupboard.organize(3, 2);',
+ \ 'bureau.prioritize(8, 7);',
+ \ 'bannister.realize(4, 4);',
+ \ 'railing.moralize(3,9);']
+ call feedkeys("qai\<c-n>\<c-n>.\<esc>3wdW\<cr>q3@a", 'tx')
+ call assert_equal(expected, getline(1,'$'))
+ bwipe!
+endfunc
" vim: shiftwidth=2 sts=2 expandtab