patch 8.0.0008

Problem:    Popup complete test is disabled.
Solution:   Enable the test and change the assert. (Hirohito Higashi)
This commit is contained in:
Bram Moolenaar
2016-09-22 21:27:11 +02:00
parent bbe917d9d4
commit 9e02cfa226
2 changed files with 9 additions and 5 deletions

View File

@ -17,16 +17,18 @@ func! ListMonths()
endfunc endfunc
func! Test_popup_complete2() func! Test_popup_complete2()
" Insert match immediately, if there is only one match " Although the popupmenu is not visible, this does not mean completion mode
" <c-e> Should select a character from the line below " has ended. After pressing <f5> to complete the currently typed char, Vim
" TODO: test disabled because the code change has been reverted. " still stays in the first state of the completion (:h ins-completion-menu),
throw "Skipped: Bug with <c-e> and popupmenu not fixed yet" " 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 new
inoremap <f5> <c-r>=ListMonths()<cr> inoremap <f5> <c-r>=ListMonths()<cr>
call append(1, ["December2015"]) call append(1, ["December2015"])
:1 :1
call feedkeys("aD\<f5>\<C-E>\<C-E>\<C-E>\<C-E>\<enter>\<esc>", 'tx') 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 %d
bw! bw!
endfu endfu

View File

@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
8,
/**/ /**/
7, 7,
/**/ /**/