vim: fix GitStatus()

feature/improve-speed
bretello 2021-09-26 15:52:21 +02:00
parent 79e584b7e8
commit 53b5d0f9f7
Signed by: brethil
GPG Key ID: 876AAC6290170FE7
1 changed files with 2 additions and 1 deletions

View File

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