mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -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
|
endif
|
||||||
let cmd = matchstr(data, escape . "\007")[5:-2]
|
let cmd = matchstr(data, escape . "\007")[5:-2]
|
||||||
let data = substitute(data, escape . "\007", '', 'g')
|
let data = substitute(data, escape . "\007", '', 'g')
|
||||||
if a:state.pty
|
|
||||||
echon data
|
|
||||||
else
|
|
||||||
echon substitute(data, "\r\\ze\n", '', 'g')
|
echon substitute(data, "\r\\ze\n", '', 'g')
|
||||||
endif
|
|
||||||
if cmd =~# '^fugitive:'
|
if cmd =~# '^fugitive:'
|
||||||
let a:state.request = strpart(cmd, 9)
|
let a:state.request = strpart(cmd, 9)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user