Fix TFS context stripping

Fixes #211.
This commit is contained in:
Marco Hinz 2017-01-31 11:34:43 +01:00
parent 716ce90fe4
commit 6d8837f878
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -283,7 +283,7 @@ function! s:strip_context(context)
let diff = []
let hunk = []
let state = 0
let lines = split(a:context,"\n",1)
let lines = a:context
let linenr = 0
while linenr < len(lines)
@ -356,7 +356,7 @@ function! s:strip_context(context)
let diff = diff + hunk
let hunk = []
endif
return join(diff,"\n")."\n"
return diff
endfunction
" Variables {{{1