Use custom functions for plugin buffer-local variables.

This commit is contained in:
Andy Stewart
2017-02-22 10:36:59 +00:00
parent 562e6043d3
commit 1bbf892eba
5 changed files with 42 additions and 30 deletions

View File

@@ -44,7 +44,7 @@ endfunction
function! gitgutter#handle_diff(diff) abort
call gitgutter#debug#log(a:diff)
call setbufvar(gitgutter#utility#bufnr(), 'gitgutter_tracked', 1)
call gitgutter#utility#setbufvar(gitgutter#utility#bufnr(), 'gitgutter_tracked', 1)
call gitgutter#hunk#set_hunks(gitgutter#diff#parse_diff(a:diff))
let modified_lines = gitgutter#diff#process_hunks(gitgutter#hunk#hunks())