From fc0199555e86ae53d55e94807a89e0e0bf1a066e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 26 Jan 2020 15:37:02 -0500 Subject: [PATCH] Extend nvim carriage return workaround to ptys References https://github.com/tpope/vim-fugitive/issues/1445 --- autoload/fugitive.vim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 470cfb1..d964afa 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2230,11 +2230,7 @@ function! s:RunReceive(state, job, data, ...) abort endif let cmd = matchstr(data, escape . "\007")[5:-2] let data = substitute(data, escape . "\007", '', 'g') - if a:state.pty - echon data - else - echon substitute(data, "\r\\ze\n", '', 'g') - endif + echon substitute(data, "\r\\ze\n", '', 'g') if cmd =~# '^fugitive:' let a:state.request = strpart(cmd, 9) endif