-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/govim: remove internal buffer on BufWipeout (#1037)
There are cases where we might get a BufWipeout autocmd without the BufDelete (most notably when running :vimgrep). When that happen we kept the internal buffer in govim even if we had no use of it anymore. When using :bwipe we do get both BufDelete and BufWipeout, but as far as we know BufDelete will always appear before BufWipeout. Trying to remove an internal buffer due to BufWipeout will not cause an error. Fixes #1033
- Loading branch information
Showing
2 changed files
with
21 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters