1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-22 03:21:30 +01:00

vim: fix GitStatus()

This commit is contained in:
bretello 2021-09-26 15:52:21 +02:00
parent 79e584b7e8
commit 53b5d0f9f7
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -88,9 +88,10 @@ endfunction
function! GitStatus() function! GitStatus()
let [a,m,r] = GitGutterGetHunkSummary() let [a,m,r] = GitGutterGetHunkSummary()
return printf('+%d ~%d -%d', a, m, r) echo printf('+%d ~%d -%d', a, m, r)
endfunction endfunction
command! GitStatus call GitStatus()
" Redirect command into scratch buffer. Stolen from romainl " Redirect command into scratch buffer. Stolen from romainl
function! Redir(cmd, rng, start, end) function! Redir(cmd, rng, start, end)