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:
parent
921ef85f77
commit
9a1b1e6d42
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user