1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:20:05 +08:00

Fix undefinded value

This commit is contained in:
Shidong Wang 2021-02-27 21:42:41 +08:00
parent a3014e1d8b
commit c028411be3

View File

@ -309,7 +309,7 @@ endfunction
" @vimlint(EVL103, 0, a:event)
function! SpaceVim#plugins#runner#status() abort
if s:status.is_running == 0
if s:status.is_running == 0 && exists('s:end_time')
return 'exit code : ' . s:status.exit_code
\ . ' time: ' . s:STRING.trim(reltimestr(s:end_time))
\ . ' language: ' . get(s:, 'selected_language', &ft)