From 6955f6dc918f61f7d3b2155b2953d8e21faeebc9 Mon Sep 17 00:00:00 2001 From: "Wilson Y. Wong" Date: Mon, 19 Aug 2013 19:16:32 -0700 Subject: [PATCH] Replace cd with pushd, currently NOT working for windows --- plugin/gitgutter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index d4a08a9..970639d 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -108,7 +108,7 @@ function! s:discard_stdout_and_stderr() endfunction function! s:command_in_directory_of_file(cmd) - let s:cmd_in_dir = 'cd ' . s:directory_of_file() . ' && ' . a:cmd + let s:cmd_in_dir = 'pushd ' . s:directory_of_file() . ' && ' . a:cmd return substitute(s:cmd_in_dir, "'", '"', 'g') endfunction