mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 17:50:04 +08:00
fix(runner): fix on_stdout function
This commit is contained in:
parent
8e7c522cb6
commit
8e63b529b7
@ -291,12 +291,12 @@ function! s:on_stdout(job_id, data, event) abort
|
|||||||
let data = a:data
|
let data = a:data
|
||||||
endif
|
endif
|
||||||
call s:BUFFER.buf_set_lines(s:code_runner_bufnr, s:runner_lines , s:runner_lines + 1, 0, data)
|
call s:BUFFER.buf_set_lines(s:code_runner_bufnr, s:runner_lines , s:runner_lines + 1, 0, data)
|
||||||
|
let s:runner_lines += len(data)
|
||||||
|
if s:winid >= 0
|
||||||
|
call s:VIM.win_set_cursor(s:winid, [s:VIM.buf_line_count(s:code_runner_bufnr), 1])
|
||||||
|
endif
|
||||||
|
call s:update_statusline()
|
||||||
endif
|
endif
|
||||||
let s:runner_lines += len(data)
|
|
||||||
if s:winid >= 0
|
|
||||||
call s:VIM.win_set_cursor(s:winid, [s:VIM.buf_line_count(s:code_runner_bufnr), 1])
|
|
||||||
endif
|
|
||||||
call s:update_statusline()
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:on_stderr(job_id, data, event) abort
|
function! s:on_stderr(job_id, data, event) abort
|
||||||
|
Loading…
Reference in New Issue
Block a user