1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00

Update cursor position after exit

This commit is contained in:
Shidong Wang 2020-03-14 16:20:43 +08:00
parent 3fbbeea8a6
commit c67e32b033

View File

@ -316,6 +316,7 @@ function! s:on_exit(job_id, data, event) abort
if bufexists(s:bufnr)
call s:BUFFER.buf_set_lines(s:bufnr, s:lines , s:lines + 1, 0, done)
endif
call s:VIM.win_set_cursor(s:winid, [s:VIM.buf_line_count(s:bufnr), 1])
call s:update_statusline()
endfunction