-
Notifications
You must be signed in to change notification settings - Fork 49
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
Pressing 'q' does not close magit, but switches buffer instead. #43
Comments
There has been some recent changes around this. Could you try the very last master branch and confirm that the problem persists? |
Yes, I've tried with 1.4.2 today 14th Nov and then compared with 14.1. I also recloned the repo to see if I'd done something wrong. |
Are you on master or on tag 1.4.2? Do you have the commit 795e280 ? If your are up to date with 795e280 , could you describe more precisely your problem, including for example:
could you also provide a step by step command to reproduce the problem. Thanks |
If I checkout 795e280 the results are the same as with master. Tag is 1.4.2. These are the steps: I start vim Vim was built from git on 15/10/2015 (or 10/15 for USA) |
There's something I don't understand
could you give the :buffers output here?
Right now, the active buffer IS magit-playground. Are you sure? It means that magit#close_magit() did not work.
Now, I am totally lost. You were in magit-playground. With :bnext, you should now be in [No name]. If it is the case, 'q' should not be active here. Could you give me the output of :buffers again here?
And, could you source and execute such function from an empty vim and attach /tmp/log
|
I don't know how to quote here, but: "Right now, the active buffer IS magit-playground. Are you sure? It means that magit#close_magit() did not work." That's what I'm saying - it doesn't close, it just switches vim to display the next buffer. vim |
Indeed, quit the magit buffer means hiding it. If I read the log correctly, press q hide the playground. So, what do you expect with q? |
In 1.4 it would close it and it wouldn't show in buffer list or airline buffer bar. |
In function! magit#close_magit() how about using bdelete instead of close? function! magit#close_magit() |
Perhaps some screenshots will help to see what I mean: I have 3 files open: a, b and c: :Magit After pressing 'q': :ls As you can see it is still visible in the airline buffer bar. |
Hi slackhead, I did not forgot you! Thanks for the screenshots. I am working on a solution, but there is some corner cases I want to fix before pushing it. I hope to push it in the next days. |
I believe it is fixed in branch next. |
Thanks. |
* next: Update Changelog plugin/magit.vim: move s:magit_commit_mode to buffer variable b:magit_current_commit_mode plugin/magit.vim: move s:state to buffer variable b:state plugin/magit.vim: display commit mode in Info section syntax/magit.vim: rework section title color Update Changelog README,doc: add notes that magit handles multiple git repo README,doc: misc changes plugin/magit.vim: add mappings N and P to jump to next and previous hunk (fix #25) syntax/magit.vim: add some color in Info section plugin/magit.vim: disable inline help by default (fix #46) plugin/magit.vim: update inline help state.vim: display modified files first plugin/magit.vim: in show_magit(), always open buffer with :buffer command (fix #41) plugin/magit.vim,autoload/git.vim: yet another rework of magit#show_magit() (fix #41) plugin/magit.vim,autoload/{git,sign}.vim: magit can handle multiple git repository within one vim session (fix #44,#34,#29) plugin/magit.vim: add MagitOnly command plugin/magit.vim: better handling of magit buffer, including clean quit command (fix #43)
I've noticed that post 1.4 when I press 'q' in the playground it does not close the buffer, it simply switches to the file buffer, leaving playground open.
If I switch to the playground buffer and press 'q' then it will then close it and the file.
The text was updated successfully, but these errors were encountered: