VimuxRunCommandInDir: run in subshell

Fixes a problem where the directory is not restored if the command exits
with a non-zero code.
fix-tmux-next-3dot4
Joakim Bergman 10 years ago
parent 21d7a34172
commit 8c332d9919

@ -20,7 +20,7 @@ function! VimuxRunCommandInDir(command, useFile)
if a:useFile ==# 1
let l:file = shellescape(expand('%:t'), 1)
endif
call VimuxRunCommand("cd ".shellescape(expand('%:p:h'), 1)." && ".a:command." ".l:file." && cd - > /dev/null")
call VimuxRunCommand("(cd ".shellescape(expand('%:p:h'), 1)." && ".a:command." ".l:file.")")
endfunction
function! VimuxRunLastCommand()

Loading…
Cancel
Save