Don't call getbufvar() with a default value.

Support for a default value in getbufvar() was introduced some time
after Vim 7.3.547 which is the current stable version in some package
repositories.
This commit is contained in:
Andy Stewart
2014-01-09 10:05:49 +01:00
parent 03ca0f8d93
commit 7ce6309a01
2 changed files with 3 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ function! utility#has_unsaved_changes(file)
endfunction
function! utility#has_fresh_changes(file)
return getbufvar(a:file, 'changedtick') != getbufvar(a:file, 'gitgutter_last_tick', -1)
return getbufvar(a:file, 'changedtick') != getbufvar(a:file, 'gitgutter_last_tick')
endfunction
function! utility#save_last_seen_change(file)