Skip to content

Commit

Permalink
Fix :Start on iTerm
Browse files Browse the repository at this point in the history
The command passed to iTerm seems to support shell quoting but not
variable expansion.  Accommodating in dispatch#isolate() is easiest;
let's hope that doesn't impact other adapters.

Closes #309
  • Loading branch information
tpope committed Mar 26, 2021
1 parent 2a4e620 commit 4313cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/dispatch.vim
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function! dispatch#isolate(request, keep, ...) abort
let command += a:000
let temp = type(a:request) == type({}) ? a:request.file . '.dispatch' : dispatch#tempname()
call writefile(command, temp)
return 'env -i ' . join(map(copy(keep), 'v:val."=\"$". v:val ."\" "'), '') . &shell . ' ' . temp
return 'env -i ' . join(map(copy(keep), 'v:val."=". dispatch#shellescape(eval("$".v:val))." "'), '') . &shell . ' ' . temp
endfunction

function! s:current_compiler(...) abort
Expand Down

0 comments on commit 4313cbb

Please sign in to comment.