add sanity check for empty buffers
This commit is contained in:
parent
904d702bc4
commit
fbde8b57d9
@ -74,6 +74,10 @@ com! -nargs=0 -bar SignifyJumpToPrevChange call s:jump_to_prev_change()
|
||||
function! s:start() abort
|
||||
let l:path = expand('%:p')
|
||||
|
||||
if empty(l:path) || &ft == 'help'
|
||||
return
|
||||
endif
|
||||
|
||||
" New buffer.. add to list.
|
||||
if !has_key(s:active_buffers, l:path)
|
||||
let s:active_buffers[l:path] = 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user