-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
vim-9.0: The autoclose functionality is not behaving correctly #851
Comments
Not sure if it's a proper/minimal one but the the following patch seems to fix the issue for me. The idea is taken from this link diff --git a/autoload/tagbar.vim b/autoload/tagbar.vim
index de8b4b3..db90f53 100644
--- a/autoload/tagbar.vim
+++ b/autoload/tagbar.vim
@@ -3540,7 +3540,7 @@ function! s:HandleOnlyWindow() abort
try
try
- quit
+ call timer_start(0, {-> execute('q', 'silent!') })
catch /.*/ " This can be E173 and maybe others
call s:OpenWindow('')
echoerr v:exception
|
That looks like it could work. If you want to push up a pull request, then if anybody else wants to help test it out as well we could get that in. |
yousong
added a commit
to yousong/tagbar
that referenced
this issue
Feb 29, 2024
The idea is taken from README.md of MattLombana/dotfiles Fixes preservim#851
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the
s:HandleOnlyWindow()
routine, currently the autoclose is not behaving correctly. With the introduction of vim-9.0 (patch-9.0.907) thequit
while inside an autocmd no longer functions.Have started a fix for this to use the
feedkeys()
, however that doesn't handle each case. It issues the:quit
no matter what even in an E173 (Additional files open), and just blows the windows away regardless. We may have to do away with the autoclose and instead guide users to a more streamlined option like this:The text was updated successfully, but these errors were encountered: