Skip to content

Commit 9e02cfa

Browse files
committed
patch 8.0.0008
Problem: Popup complete test is disabled. Solution: Enable the test and change the assert. (Hirohito Higashi)
1 parent bbe917d commit 9e02cfa

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/testdir/test_popup.vim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,18 @@ func! ListMonths()
1717
endfunc
1818

1919
func! Test_popup_complete2()
20-
" Insert match immediately, if there is only one match
21-
" <c-e> Should select a character from the line below
22-
" TODO: test disabled because the code change has been reverted.
23-
throw "Skipped: Bug with <c-e> and popupmenu not fixed yet"
20+
" Although the popupmenu is not visible, this does not mean completion mode
21+
" has ended. After pressing <f5> to complete the currently typed char, Vim
22+
" still stays in the first state of the completion (:h ins-completion-menu),
23+
" although the popupmenu wasn't shown <c-e> will remove the inserted
24+
" completed text (:h complete_CTRL-E), while the following <c-e> will behave
25+
" like expected (:h i_CTRL-E)
2426
new
2527
inoremap <f5> <c-r>=ListMonths()<cr>
2628
call append(1, ["December2015"])
2729
:1
2830
call feedkeys("aD\<f5>\<C-E>\<C-E>\<C-E>\<C-E>\<enter>\<esc>", 'tx')
29-
call assert_equal(["December2015", "", "December2015"], getline(1,3))
31+
call assert_equal(["Dece", "", "December2015"], getline(1,3))
3032
%d
3133
bw!
3234
endfu

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ static char *(features[]) =
764764

765765
static int included_patches[] =
766766
{ /* Add new patch number below this line */
767+
/**/
768+
8,
767769
/**/
768770
7,
769771
/**/

0 commit comments

Comments
 (0)