Skip to content

Commit

Permalink
Merge pull request #3299 from ixru/master
Browse files Browse the repository at this point in the history
Revert to using lcd when changing directory.
  • Loading branch information
bhcleek authored Oct 4, 2021
2 parents 2578f7f + 2e79e03 commit 53fe9fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/go/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ endfunction
function! go#util#Chdir(dir) abort
if !exists('*chdir')
let l:olddir = getcwd()
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
execute printf('cd %s', fnameescape(a:dir))
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd' : 'cd'
execute printf('%s %s', cd, fnameescape(a:dir))
return l:olddir
endif
return chdir(a:dir)
Expand Down

0 comments on commit 53fe9fe

Please sign in to comment.