mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +08:00
pref(runner): remove \r
at the end of line
This commit is contained in:
parent
812416bdf5
commit
d37f00be2f
@ -285,7 +285,10 @@ function! s:on_stdout(job_id, data, event) abort
|
||||
return
|
||||
endif
|
||||
if bufexists(s:code_runner_bufnr)
|
||||
call s:BUFFER.buf_set_lines(s:code_runner_bufnr, s:runner_lines , s:runner_lines + 1, 0, a:data)
|
||||
if s:SYS.isWindows
|
||||
let data = map(a:data, 'substitute(v:val, "\r$", "", "g")')
|
||||
endif
|
||||
call s:BUFFER.buf_set_lines(s:code_runner_bufnr, s:runner_lines , s:runner_lines + 1, 0, data)
|
||||
endif
|
||||
let s:runner_lines += len(a:data)
|
||||
if s:winid >= 0
|
||||
|
Loading…
Reference in New Issue
Block a user