-
-
Notifications
You must be signed in to change notification settings - Fork 372
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
WIP: Improve buffer switching #409
base: master
Are you sure you want to change the base?
Conversation
Tests are failing, because the behavior changed. Before adjusting them, I'd like to get feedback on this. |
Since this would be a change with big impact, I really need to play with it first. I don't have time for the next few days, so it might still take a while. |
f3d3b89
to
04c2dde
Compare
Sure. |
Since we have started the discussion in #408, I will continue it there. |
It should use the same code path/logic. Apart from that, `:tab drop` is also available in non-GUI Vim.
This adds `jedi_vim.edit_buffer`, factored out of `new_buffer`, and `goto` uses it. Ref: davidhalter#408
It was passed around, but never used really. The only place would have been `:Pyimport`, but that command definition has `-nargs=1`.
This will only write the buffer file, if the buffer has changed.
04c2dde
to
a096b6e
Compare
Based on suggestions and discussion in #408