mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix bug when calling GitGutterDisable immediately.
When opening Vim without editing any file, calling GitGutterDisable would fail because `s:file` was undefined at that point. The fix breaks what encapsulation there is, but has the virtue of working.
This commit is contained in:
@@ -18,6 +18,8 @@ if !exists('g:gitgutter_sign_column_always')
|
||||
let g:gitgutter_sign_column_always = 0
|
||||
endif
|
||||
|
||||
let s:file = ''
|
||||
|
||||
function! s:init()
|
||||
if !exists('g:gitgutter_initialised')
|
||||
call s:define_sign_column_highlight()
|
||||
|
||||
Reference in New Issue
Block a user