1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 10:50:05 +08:00

Support cwd in job

This commit is contained in:
wsdjeg 2017-12-27 12:14:37 +08:00
parent 921ef85f77
commit 9a1b1e6d42

View File

@ -96,7 +96,7 @@ function! s:self.start(argv, ...) abort
let id = len(self.jobs) + 1
let opts.jobpid = id
let wrapped = self.warp(a:argv, opts)
if has_key(wrapped.opts, 'cwd')
if has_key(wrapped.opts, 'cwd') && !has('patch-8.0.0902')
let old_wd = getcwd()
let cwd = expand(wrapped.opts.cwd, 1)
" Avoid error E475: Invalid argument: cwd