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:
parent
79e584b7e8
commit
53b5d0f9f7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user