Remove ANSI from standard out

This commit is contained in:
Neil Kirsopp 2014-03-20 16:50:40 +00:00
parent 31eaa4455e
commit 72794b36d9

View File

@ -546,7 +546,7 @@ function! s:output_response(response) abort
echohl NONE echohl NONE
endif endif
if get(a:response, 'out', '') !=# '' if get(a:response, 'out', '') !=# ''
echo substitute(a:response.out, '\r\|\n$', '', 'g') echo substitute(a:response.out, '\e\[[0-9;]\+m\|\r\|\n$', '', 'g')
endif endif
endfunction endfunction