]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1733: incomplete testing for completion fix v8.0.1733
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Apr 2018 21:31:05 +0000 (23:31 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Apr 2018 21:31:05 +0000 (23:31 +0200)
Problem:    Incomplete testing for completion fix. (Lifepillar)
Solution:   Add a test with CTRL-P.

src/testdir/test_popup.vim
src/version.c

index a2e86d70373bc912a5d8beb9f57e2e95ee853cb8..ed31985856343b3e7dda16ca6b578f239fce06ee 100644 (file)
@@ -824,4 +824,14 @@ func Test_popup_complete_backwards()
   bwipe!
 endfunc
 
+func Test_popup_complete_backwards_ctrl_p()
+  new
+  call setline(1, ['Post', 'Port', 'Po'])
+  let expected=['Post', 'Port', 'Port']
+  call cursor(3,2)
+  call feedkeys("A\<C-P>\<C-N>rt\<cr>", 'tx')
+  call assert_equal(expected, getline(1,'$'))
+  bwipe!
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab
index 5647b6e4b2a4c91556c775a56e770d5abdd66982..2cdd9e313f4b45b6263f19d3574e87722a290e21 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1733,
 /**/
     1732,
 /**/