diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-28 11:26:43 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-28 11:26:43 +1200 |
commit | 1327bf1a430b77aa38a69e4de33d92cf844f0bad (patch) | |
tree | eb67688e6a477dc40e91b8c740ec8c9eeb36865d | |
parent | First commit (diff) | |
parent | Bump VERSION (diff) | |
download | vim-make-target-0.2.0.tar.gz (sig) vim-make-target-0.2.0.zip |
Merge branch 'release/v0.2.0'v0.2.0
* release/v0.2.0:
Bump VERSION
Escape target if supported
Use -C to change directory in :make call
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | autoload/make/target.vim | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -1 +1 @@ -0.1.0 +0.2.0 diff --git a/autoload/make/target.vim b/autoload/make/target.vim index e3c0861..1f16801 100644 --- a/autoload/make/target.vim +++ b/autoload/make/target.vim @@ -24,9 +24,12 @@ function! make#target#Make() abort endfor - " If we found targets, :make them + " If we found targets, :make them; escape them if we can for l:target in l:targets - execute 'make! '.l:target + if exists('*shellescape') + let l:target = shellescape(l:target) + endif + execute 'make! -C %:p:h '.l:target endfor endfunction |