Never throw exception in fireplace#op_available

This commit is contained in:
Tim Pope 2014-04-12 21:49:45 -04:00
parent c6e0d55143
commit 5f1cee19c0

View File

@ -556,10 +556,13 @@ function! fireplace#message(payload, ...) abort
endfunction endfunction
function! fireplace#op_available(op) abort function! fireplace#op_available(op) abort
try
let client = fireplace#platform() let client = fireplace#platform()
if has_key(client, 'connection') if has_key(client, 'connection')
return client.connection.has_op(a:op) return client.connection.has_op(a:op)
endif endif
catch /^Fireplace: :Connect to a REPL/
endtry
endfunction endfunction
function! fireplace#findresource(resource, ...) abort function! fireplace#findresource(resource, ...) abort