Skip to content

Commit 4313cbb

Browse files
committed
Fix :Start on iTerm
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
1 parent 2a4e620 commit 4313cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/dispatch.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function! dispatch#isolate(request, keep, ...) abort
354354
let command += a:000
355355
let temp = type(a:request) == type({}) ? a:request.file . '.dispatch' : dispatch#tempname()
356356
call writefile(command, temp)
357-
return 'env -i ' . join(map(copy(keep), 'v:val."=\"$". v:val ."\" "'), '') . &shell . ' ' . temp
357+
return 'env -i ' . join(map(copy(keep), 'v:val."=". dispatch#shellescape(eval("$".v:val))." "'), '') . &shell . ' ' . temp
358358
endfunction
359359

360360
function! s:current_compiler(...) abort

0 commit comments

Comments
 (0)