Print post-processing error in multi-line paragraph

Related #510
This commit is contained in:
Junegunn Choi
2016-08-15 00:46:10 +09:00
parent b44ea685aa
commit 561518fd8c
2 changed files with 5 additions and 4 deletions

View File

@@ -1397,8 +1397,9 @@ Execute (Commit hash support):
call plug#end()
PlugUpdate
Log getline(1, '$')
AssertEqual 'x goyo.vim: error: pathspec ''ffffffff'' did not match any file(s) known to git.', getline(5)
AssertEqual 0, stridx(getline(6), '- vim-emoji: HEAD is now at 9db7fcf...')
AssertEqual 'x goyo.vim:', getline(5)
AssertEqual ' error: pathspec ''ffffffff'' did not match any file(s) known to git.', getline(6)
AssertEqual 0, stridx(getline(7), '- vim-emoji: HEAD is now at 9db7fcf...')
let hash = system(printf('cd %s && git rev-parse HEAD', g:plugs['vim-emoji'].dir))[:-2]
AssertEqual '9db7fcfee0d90dafdbcb7a32090c0a9085eb054a', hash