forked from wincent/command-t
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispose of match listing using :bunload! rather than :bwipeout!
Previously we created a new buffer every time we showed the match listing and then disposed of it each time with :bwipeout!. This caused the buffer numbers to steadily grow. Now, we dispose of the match listing using :bunload!; this frees the contents of the buffer and closes the window, but the buffer sticks around and can be re-used next time we show the match listing. In this way we always have a stable buffer number for the match listing and repeatedly using Command-T doesn't drive the buffer numbers up any more. For more info see: https://wincent.com/issues/1724 One concern with this change is that it increases our reliance on the accuracy of the buffer number, and there is a known bug in Vim 7.3 when built with --enable-largefile; see this ticket for full details: https://wincent.com/issues/1617 If you are affected by this bug the solution is to build Vim using --disable-largefile. Until the issue gets fixed upstream I am thinking of adding a workaround in Command-T (falling back to buffer name rather than number for people with a broken Vim). Signed-off-by: Wincent Colaiuta <win@wincent.com>
- Loading branch information
Showing
1 changed file
with
35 additions
and
28 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