]> granicus.if.org Git - vim/commitdiff
patch 8.0.0008 v8.0.0008
authorBram Moolenaar <Bram@vim.org>
Thu, 22 Sep 2016 19:27:11 +0000 (21:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 22 Sep 2016 19:27:11 +0000 (21:27 +0200)
Problem:    Popup complete test is disabled.
Solution:   Enable the test and change the assert. (Hirohito Higashi)

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

index 6e0739368561268b239163aaf611c8097360edaa..10eaf3a6326758d2b8eeeb007bffed8249c71bb9 100644 (file)
@@ -17,16 +17,18 @@ func! ListMonths()
 endfunc
 
 func! Test_popup_complete2()
-  " Insert match immediately, if there is only one match
-  "  <c-e> Should select a character from the line below
-  " TODO: test disabled because the code change has been reverted.
-  throw "Skipped: Bug with <c-e> and popupmenu not fixed yet"
+  " Although the popupmenu is not visible, this does not mean completion mode
+  " has ended. After pressing <f5> to complete the currently typed char, Vim
+  " still stays in the first state of the completion (:h ins-completion-menu),
+  " although the popupmenu wasn't shown <c-e> will remove the inserted
+  " completed text (:h complete_CTRL-E), while the following <c-e> will behave
+  " like expected (:h i_CTRL-E)
   new
   inoremap <f5> <c-r>=ListMonths()<cr>
   call append(1, ["December2015"])
   :1
   call feedkeys("aD\<f5>\<C-E>\<C-E>\<C-E>\<C-E>\<enter>\<esc>", 'tx')
-  call assert_equal(["December2015", "", "December2015"], getline(1,3))
+  call assert_equal(["Dece", "", "December2015"], getline(1,3))
   %d
   bw!
 endfu
index 660b8285e02855444ab2f195b5ade89facd44d4b..a603fe3e9efaad9a9e083a1e0ed9d667bed49e2c 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    8,
 /**/
     7,
 /**/