Never throw exception in fireplace#op_available
This commit is contained in:
parent
c6e0d55143
commit
5f1cee19c0
@ -556,10 +556,13 @@ function! fireplace#message(payload, ...) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fireplace#op_available(op) abort
|
function! fireplace#op_available(op) abort
|
||||||
let client = fireplace#platform()
|
try
|
||||||
if has_key(client, 'connection')
|
let client = fireplace#platform()
|
||||||
return client.connection.has_op(a:op)
|
if has_key(client, 'connection')
|
||||||
endif
|
return client.connection.has_op(a:op)
|
||||||
|
endif
|
||||||
|
catch /^Fireplace: :Connect to a REPL/
|
||||||
|
endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fireplace#findresource(resource, ...) abort
|
function! fireplace#findresource(resource, ...) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user