-
Notifications
You must be signed in to change notification settings - Fork 175
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
Use scope-local functions #97
Conversation
In every case that I see, the CWD directory is restored in a |
The bug occurs when you have two tabs with different When the plugin runs on the first tab, apparently nothing happens, but the setting has changed the scope back to global. When running on the second tab, the plugin changes the setting of that tab back to global, and both tabs now are located on the cwd of the latter. Took me a while to figure this out. |
Also, it's important to say that I tested this on jreybert/vimagit#95, mhinz/vim-signify#192 and this one and all these three plugins were causing the same issue. While neomake/neomake#688 has the same pattern, I couldn't prove it was offending. Basically any plugin that does not support tcd will break its usage after some time. |
This avoids overriding local cwd settings, as vim allows `lcd` for window-local working directory and neovim supports additionally `tcd` for tab-local working directory.
ping @ludovicchabant. Can we merge? |
Ah sorry, totally didn't see this pull request. Thanks, I had not considered local CWDs. However it looks like the version of |
No problem. I've been on a hurry lately, sorry about that. About what you said I'm not sure since when it's available, but it looks like it has something to do with |
Merged, thanks a lot! |
This avoids overriding local cwd settings, as vim allows
lcd
for window-local working directory and neovim supports additionally
tcd
for tab-local working directory.