-
Notifications
You must be signed in to change notification settings - Fork 23
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
Error detected while processing function FocusGained Autocommands #33
Comments
Can you disable other plugins and reproduce it consistently? |
I'll try. It only started recently. Hard to reproduce reliably, I mean it happens a few times per day but I cannot repro it exactly when I want. |
For me this happens when switching back to tmux/vim when I left vim in command mode.
I am using neovim. |
ok, I can reproduce it reliably if I hit / or : immediately after starting vim, not waiting for the screen/file loading etc.
I just added a try/catch for E1155 around the focus_gained_checktime autocmd. |
We can add try/catch there but that would probably mean you would NOT get this autocommand installed. The Focus lost/gained events would not trigger is some cases in that vim instance. Btw. are you on neovim? I can't get any info for |
Hi, |
Total hack, but something like this seems to work -
|
It could be simplified to just call s:RetryAU(0) in focus_gained()
|
Looks good, wanna submit a PR? |
ok, sure, will do in a few. |
PR #35 |
We need to revert this PR #35 |
Hi,
thx, |
This change seems ok to me so far ... Anyone else have ideas or comments ? |
I've had decent luck with |
Hi,
Thank you for this great plugin.
Recently I have been sometimes getting this when starting a new vim -
Just wondered if there was a try/catch or some way to fix/avoid this ?
thx,
-m
The text was updated successfully, but these errors were encountered: