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
|
function! s:start() abort
|
||||||
let l:path = expand('%:p')
|
let l:path = expand('%:p')
|
||||||
|
|
||||||
|
if empty(l:path) || &ft == 'help'
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
" New buffer.. add to list.
|
" New buffer.. add to list.
|
||||||
if !has_key(s:active_buffers, l:path)
|
if !has_key(s:active_buffers, l:path)
|
||||||
let s:active_buffers[l:path] = 1
|
let s:active_buffers[l:path] = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user