From: Bram Moolenaar Date: Thu, 22 Sep 2016 19:27:11 +0000 (+0200) Subject: patch 8.0.0008 X-Git-Tag: v8.0.0008 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e02cfa226b2577ec867b544a1a450a428a19880;p=vim patch 8.0.0008 Problem: Popup complete test is disabled. Solution: Enable the test and change the assert. (Hirohito Higashi) --- diff --git a/src/testdir/test_popup.vim b/src/testdir/test_popup.vim index 6e0739368..10eaf3a63 100644 --- a/src/testdir/test_popup.vim +++ b/src/testdir/test_popup.vim @@ -17,16 +17,18 @@ func! ListMonths() endfunc func! Test_popup_complete2() - " Insert match immediately, if there is only one match - " Should select a character from the line below - " TODO: test disabled because the code change has been reverted. - throw "Skipped: Bug with and popupmenu not fixed yet" + " Although the popupmenu is not visible, this does not mean completion mode + " has ended. After pressing 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 will remove the inserted + " completed text (:h complete_CTRL-E), while the following will behave + " like expected (:h i_CTRL-E) new inoremap =ListMonths() call append(1, ["December2015"]) :1 call feedkeys("aD\\\\\\\", 'tx') - call assert_equal(["December2015", "", "December2015"], getline(1,3)) + call assert_equal(["Dece", "", "December2015"], getline(1,3)) %d bw! endfu diff --git a/src/version.c b/src/version.c index 660b8285e..a603fe3e9 100644 --- a/src/version.c +++ b/src/version.c @@ -764,6 +764,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 8, /**/ 7, /**/