Preserve alternate buffer when processing realtime diff.

See #238.
This commit is contained in:
Andy Stewart
2015-03-10 10:17:34 +01:00
parent a86a32c530
commit 3420cbf6cb
4 changed files with 21 additions and 1 deletions

View File

@@ -20,3 +20,8 @@ function! DumpGitDiffStaged(filename)
call system('git diff --staged fixture.txt > '.a:filename.'.actual')
endfunction
function! Dump(text, filename)
let msg = type(a:text) == 1 ? split(a:text, '\n') : a:text
call writefile(msg, a:filename.'.actual', 'a')
endfunction