Skip to content
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

Reduce potential problems #89

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

aileot
Copy link

@aileot aileot commented Dec 23, 2020

  • Rename the variables that were too simply named.
    They were exposed having risks to conflict with other variables possibly defined outside agit.vim.

  • Remove the autocmd on QuitPre to exit.
    That could disturb us closing extra windows on such cases as below:

    • :tabonly at another tab.
    • :tabclose at the agit tab.
    • :only to concentrate an agit buffer or another buffer which's been opened in the same tab.

By the way, what is the reason to copy win from w: before has_key(win, foo) (not just has_key(w:, foo))?

It was quite irritating that the autocmd tried to close all the windows
generated by agit.

Typical problematic cases are below:
- `:tabonly` at another tab.
- `:tabclose` at the agit tab.
- `:only` at the agit tab to concentrate an agit buffer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant