The problem: Vim flickers (in my case subtly) while typing on buffer A when there's a hidden edited and unsaved buffer B.
Cause: Have plugin that access the buffer options (e.g. in python: <some buffer object>.options[ <some option> ]) triggered by changing the buffer (typing, etc). Debugging I found the root cause: "About the flickering problem, on my machine it's somewhat quite subtle so I didn't notice there was such an issue, but anyway, debugging I found the problem lies with the lines 8969 and 8971 of the option.c file. Commenting out those lines, the flickering vanishes. That calls end up doing a lot of buffer/window operations when there's a hidden edited buffer, I think unecessarily. They stand as guarding calls around the 8970 that does the useful (and what should have been simple) job of getting a buffer property. It must be fixed, when I get the time I'll debug a bit more and post an issue or patch at the mailing list." The three important lines are: aucmd_prepbuf(&aco, (buf_T *) from); varp = get_varp(p); aucmd_restbuf(&aco); So, is aucmd_prepbuf and aucmd_restbuf really necessary for calling get_varp? if so, they must be further analyzed because they're doing a lot of buffer/window operations (given the previous scenery) just for sake of just getting an option value, and that's the cause of window flickering. Please check the following link for further information on tracking down this bug and the solutions being applied to circumvent it. https://github.com/Valloric/YouCompleteMe/issues/669#ref-commit-e8d1a4c -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
