From 53201c89de7571283f8e209045cd630fb0d1f9d9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 24 Jan 2013 16:36:09 -0500 Subject: [PATCH] Fix recognition of REPL disconnection --- plugin/foreplay.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index ffd12d6..a848ef0 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -128,7 +128,7 @@ endfunction function! s:repl.eval(expr, options) dict abort try 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:repls, 'v:val isnot self') throw v:exception