Improve debug output

This commit is contained in:
Marco Hinz 2017-04-18 17:18:19 +02:00
parent 64b2170a1f
commit 179fe50edf
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -195,9 +195,13 @@ function! sy#sign#process_diff(sy, vcs, diff) abort
call feedkeys("\<c-l>")
endif
call sy#verbose('Signs updated. Disable other VCS.', a:vcs)
let a:sy.vcs = [a:vcs]
let a:sy.updated_by = a:vcs
call sy#verbose('Signs updated.', a:vcs)
if len(a:sy.vcs) > 1
call sy#verbose('Disable all other VCS.', a:vcs)
let a:sy.vcs = [a:vcs]
let a:sy.updated_by = a:vcs
endif
let a:sy.stats = [added, modified, deleted]
endfunction