From 6f93e99edecaa9afb996e5677bce2762f2278db3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 15 Jan 2013 20:17:59 -0500 Subject: [PATCH] Strip all carriage returns out of output Closes #38. --- plugin/foreplay.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/foreplay.vim b/plugin/foreplay.vim index ff42b91..31b97b2 100644 --- a/plugin/foreplay.vim +++ b/plugin/foreplay.vim @@ -401,11 +401,11 @@ endfunction function! s:output_response(response) abort if get(a:response, 'err', '') !=# '' echohl ErrorMSG - echo substitute(a:response.err, '\n$', '', '') + echo substitute(a:response.err, '\r\|\n$', '', 'g') echohl NONE endif if get(a:response, 'out', '') !=# '' - echo substitute(a:response.out, '\n$', '', '') + echo substitute(a:response.out, '\r\|\n$', '', 'g') endif endfunction