mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -05:00
Extend nvim carriage return workaround to ptys
References https://github.com/tpope/vim-fugitive/issues/1445
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user