summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_popup.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-06-24 15:39:07 +0200
committerBram Moolenaar <Bram@vim.org>2017-06-24 15:39:07 +0200
commit24a9e348aa88a6c60ae0cdf5c4a777d8c03b08ca (patch)
tree86f499c46b77b342b25522e9f60a1e16a14a3915 /src/testdir/test_popup.vim
parenta1bd86e0f2056f796390bc0cd3aba5c89513d0d2 (diff)
patch 8.0.0669: CTRL-N at start of the buffer does not work correctlyv8.0.0669
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)
Diffstat (limited to 'src/testdir/test_popup.vim')
-rw-r--r--src/testdir/test_popup.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim
index 25d766f7b9..e3bd0e19a0 100644
--- a/src/testdir/test_popup.vim
+++ b/src/testdir/test_popup.vim
@@ -612,5 +612,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