Going back to formerly active directory after running command

fix-tmux-next-3dot4
Hendrik Purmann 10 years ago
parent 01c0679223
commit 7b655a7b5c

@ -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)
call VimuxRunCommand("cd ".shellescape(expand('%:p:h'), 1)." && ".a:command." ".l:file." && cd - > /dev/null")
endfunction
function! VimuxRunLastCommand()

Loading…
Cancel
Save