0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.1.0503: missing change to diff test

Problem:    Missing change to diff test. (Hirohito Higashi)
Solution:   Add the missing test function.
This commit is contained in:
Bram Moolenaar
2018-11-01 21:14:53 +01:00
parent f080d70a82
commit f7acf2b63c
2 changed files with 22 additions and 0 deletions

View File

@@ -885,3 +885,23 @@ func Test_diff_with_cursorline()
call StopVimInTerminal(buf) call StopVimInTerminal(buf)
call delete('Xtest_diff_cursorline') call delete('Xtest_diff_cursorline')
endfunc endfunc
func Test_diff_of_diff()
if !CanRunVimInTerminal()
return
endif
call writefile([
\ 'call setline(1, ["aa","bb","cc","@@ -3,2 +5,7 @@","dd","ee","ff"])',
\ 'vnew',
\ 'call setline(1, ["aa","bb","cc"])',
\ 'windo diffthis',
\ ], 'Xtest_diff_diff')
let buf = RunVimInTerminal('-S Xtest_diff_diff', {})
call VerifyScreenDump(buf, 'Test_diff_of_diff_01', {})
" clean up
call StopVimInTerminal(buf)
call delete('Xtest_diff_diff')
endfunc

View File

@@ -792,6 +792,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 */
/**/
503,
/**/ /**/
502, 502,
/**/ /**/