Fix recognition of REPL disconnection

This commit is contained in:
Tim Pope 2013-01-24 16:36:09 -05:00
parent 7ff2191a30
commit 53201c89de

View File

@ -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