-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Syntatic calling redraw!
can cause Vim to crash
#834
Comments
Ok, f623d1e (in a branch delayed_redraws) adds a variable |
this is better be the default in master when merged I think. |
@oblitum It's a hack, and not everybody needs it. Also, Vim crashing is an incentive for people to upgrade. :) |
@lcd047 hehe, true =) |
@lcd047 Thank you so much! May I ask when will this be merged into master? I'd like to start telling users to update to latest Syntastic to work around the issue. Just FYI, I'll set this flag to true when YCM is loaded. |
I was going to test it for a few more days, but ok, I suppose people having problem with it will complain. Merged in bcbcb7c. |
Thanks! |
Short version:
It seems that if Syntastic (or anything really) calls redraw while Vim's pop-up menu is shown, Vim crashes. This is caused by a bug in Vim and a patch for the bug is waiting to land, but it would be great to work around this to support people who aren't running the very latest Vim.
Adding a condition to the s:Redraw function that checks for output of
pumvisible()
and doesn't redraw if the pop-up menu is shown should fix this.Long version:
Here's the relevant comment: ycm-core/YouCompleteMe#618 (comment)
The issue that started everything: ycm-core/YouCompleteMe#593
The text was updated successfully, but these errors were encountered: