mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-09 03:53:47 -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
|
let g:gitgutter_sign_column_always = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
let s:file = ''
|
||||||
|
|
||||||
function! s:init()
|
function! s:init()
|
||||||
if !exists('g:gitgutter_initialised')
|
if !exists('g:gitgutter_initialised')
|
||||||
call s:define_sign_column_highlight()
|
call s:define_sign_column_highlight()
|
||||||
|
|||||||
Reference in New Issue
Block a user