mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 12:33:47 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user