Fix recognition of REPL disconnection
This commit is contained in:
parent
7ff2191a30
commit
53201c89de
@ -128,7 +128,7 @@ endfunction
|
|||||||
function! s:repl.eval(expr, options) dict abort
|
function! s:repl.eval(expr, options) dict abort
|
||||||
try
|
try
|
||||||
let result = self.connection.eval(a:expr, a:options)
|
let result = self.connection.eval(a:expr, a:options)
|
||||||
catch /^\w\+: Connection/
|
catch /^\w\+ Connection Error:/
|
||||||
call filter(s:repl_paths, 'v:val isnot self')
|
call filter(s:repl_paths, 'v:val isnot self')
|
||||||
call filter(s:repls, 'v:val isnot self')
|
call filter(s:repls, 'v:val isnot self')
|
||||||
throw v:exception
|
throw v:exception
|
||||||
|
Loading…
Reference in New Issue
Block a user