mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-11 04:53:46 -05:00
Autoload.
This commit is contained in:
24
autoload/hunk.vim
Normal file
24
autoload/hunk.vim
Normal file
@@ -0,0 +1,24 @@
|
||||
" number of lines [added, modified, removed]
|
||||
let s:summary = [0, 0, 0]
|
||||
|
||||
function! hunk#summary()
|
||||
return s:summary
|
||||
endfunction
|
||||
|
||||
function! hunk#reset()
|
||||
let s:summary = [0, 0, 0] " TODO: is bling/airline expecting [-1, -1, -1]?
|
||||
endfunction
|
||||
|
||||
function! hunk#increment_lines_added(count)
|
||||
let s:summary[0] += a:count
|
||||
endfunction
|
||||
|
||||
function! hunk#increment_lines_modified(count)
|
||||
let s:summary[1] += a:count
|
||||
endfunction
|
||||
|
||||
function! hunk#increment_lines_removed(count)
|
||||
let s:summary[2] += a:count
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user