Skip to content

Commit 12f8eea

Browse files
authored
Merge pull request #42 from hillaryychan/master
Fix blamer not working when initially blamer_enabled=0
2 parents 1d5c4b5 + d42a937 commit 12f8eea

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

autoload/blamer.vim

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ endfunction
336336

337337
function! blamer#Enable() abort
338338
let g:blamer_enabled = 1
339+
let s:blamer_buffer_enabled = blamer#IsBufferGitTracked()
339340
endfunction
340341

341342
function! blamer#Disable() abort
@@ -363,10 +364,6 @@ function! blamer#DisableShow() abort
363364
endfunction
364365

365366
function! blamer#Init() abort
366-
if g:blamer_enabled == 0
367-
return
368-
endif
369-
370367
if g:blamer_is_initialized == 1
371368
return
372369
endif

0 commit comments

Comments
 (0)