-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current working dir is wrong after running :GoRun in NeoVim #1289
Labels
Comments
Ping @dorons , can you please test it ? |
This is now in master. Let me know if you have still issues. Thanks. |
Sorry for catching this late. Verified with master... works as advertized :) |
fatih
added a commit
that referenced
this issue
May 31, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Behavior
When executing
:GoRun
on an inner/nested main package within a project tree, the local current dir of the window from which:GoRun
was commenced is changed to the path of thepackage main
inner file and is no longer the project's root dir.The issue seems to be that the
go#term#newmode
function changeslcd
of the source (main.go) window and "restores" the original dir on the target window (terminal) instead.Steps to reproduce:
cd $GOPATH/src/scratch/mypkg
:e ./cmd/util/main.go
:echo getcwd()
=> /Users/doron/go/src/scratch/mypkg:GoRun
... main runs in NeoVim's terminal mode in a new window:echo getcwd()
=> /Users/doron/go/src/scratch/mypkg/cmd/util (inner path)Configuration
The text was updated successfully, but these errors were encountered: