Skip to content

Reduce potential problems#89

Open
aileot wants to merge 4 commits intocohama:masterfrom
aileot:feature/reduce-potential-problems
Open

Reduce potential problems#89
aileot wants to merge 4 commits intocohama:masterfrom
aileot:feature/reduce-potential-problems

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