0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.1.1139: no test for what is fixed in patch 8.1.0716

Problem:    No test for what is fixed in patch 8.1.0716.
Solution:   Add a test. (Yasuhiro Matsumoto, closes #3797)
This commit is contained in:
Bram Moolenaar
2019-04-08 18:59:54 +02:00
parent d7f246c68c
commit 9845f36aa6
2 changed files with 5 additions and 0 deletions

View File

@@ -186,12 +186,15 @@ endfunc
func Test_CompleteDoneNone() func Test_CompleteDoneNone()
au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemNone() au CompleteDone * :call <SID>CompleteDone_CheckCompletedItemNone()
let oldline = join(map(range(&columns), 'nr2char(screenchar(&lines-1, v:val+1))'), '')
set completefunc=<SID>CompleteDone_CompleteFuncNone set completefunc=<SID>CompleteDone_CompleteFuncNone
execute "normal a\<C-X>\<C-U>\<C-Y>" execute "normal a\<C-X>\<C-U>\<C-Y>"
set completefunc& set completefunc&
let newline = join(map(range(&columns), 'nr2char(screenchar(&lines-1, v:val+1))'), '')
call assert_true(s:called_completedone) call assert_true(s:called_completedone)
call assert_equal(oldline, newline)
let s:called_completedone = 0 let s:called_completedone = 0
au! CompleteDone au! CompleteDone

View File

@@ -771,6 +771,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 */
/**/
1139,
/**/ /**/
1138, 1138,
/**/ /**/