Check existence of function

This commit is contained in:
Andy Stewart
2016-05-09 12:14:30 +01:00
parent f03a1a1f02
commit d5806ea44c

View File

@@ -80,7 +80,9 @@ endfunction
function! gitgutter#debug#log(message, ...)
if g:gitgutter_log
if s:new_log_session && gitgutter#async#available()
call ch_logfile(s:channel_log, 'w')
if exists('*ch_logfile')
call ch_logfile(s:channel_log, 'w')
endif
endif
execute 'redir >> '.s:log_file