Skip to content

Commit

Permalink
Replace cd with pushd,
Browse files Browse the repository at this point in the history
currently NOT working for windows
  • Loading branch information
wywong committed Aug 20, 2013
1 parent e07e6aa commit 6955f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/gitgutter.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6955f6d

Please sign in to comment.