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

Fix isBackground checking

This commit is contained in:
Shidong Wang 2020-02-15 21:06:05 +08:00
parent 48cdcfee48
commit e5e98d7992

View File

@ -387,7 +387,7 @@ endfunction
function! SpaceVim#plugins#runner#run_task(task) function! SpaceVim#plugins#runner#run_task(task)
let isBackground = get(a:task, 'isBackground', 0) let isBackground = get(a:task, 'isBackground', 0)
if isBackground && !empty(a:task) if !empty(a:task)
let cmd = get(a:task, 'command', '') let cmd = get(a:task, 'command', '')
let args = get(a:task, 'args', []) let args = get(a:task, 'args', [])
if !empty(args) && !empty(cmd) if !empty(args) && !empty(cmd)