mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Bypass sticky type checking on older Vims
Until Vim 7.5.1546 the type of a variable could not be changed. Fixes #693.
This commit is contained in:
@@ -11,6 +11,7 @@ function! gitgutter#utility#setbufvar(buffer, varname, val)
|
|||||||
" Default value for getbufvar() was introduced in Vim 7.3.831.
|
" Default value for getbufvar() was introduced in Vim 7.3.831.
|
||||||
let ggvars = getbufvar(buffer, 'gitgutter')
|
let ggvars = getbufvar(buffer, 'gitgutter')
|
||||||
if type(ggvars) == type('')
|
if type(ggvars) == type('')
|
||||||
|
unlet ggvars
|
||||||
let ggvars = {}
|
let ggvars = {}
|
||||||
call setbufvar(buffer, 'gitgutter', ggvars)
|
call setbufvar(buffer, 'gitgutter', ggvars)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user