completor.vim icon indicating copy to clipboard operation
completor.vim copied to clipboard

Occasional Results Flicker

Open amadeus opened this issue 9 years ago • 7 comments

So I have noticed an interesting phenomena that seems to occur rather inconsistently. I've created a small video that shows the issue - essentially it appears that sometimes as I type out characters, the results flicker a bit, as if they go away and re-appear with updated results.

Video

It would be nice if perhaps the results at least stuck around, even if they are not 100% accurate since I find the visual noise more annoying than anything.

amadeus avatar Nov 22 '16 22:11 amadeus

It's a bug in Vim. There's a pull request which will, hopefully, be merged to address that problem. https://github.com/vim/vim/pull/517

markonm avatar Nov 22 '16 23:11 markonm

I have checked your video. It seems completor.vim problem. Unfortunately, vim/vim#517 does not fix your problem.

completor.vim uses timer feature. If the completion is done when your popup is visible, it will be flick.

Note: deoplete does not have this problem. Because deoplete checks pumvisible().

Shougo avatar Nov 24 '16 21:11 Shougo

@Shougo does that mean this issue could be easily fixed here? Or would it be a major change?

amadeus avatar Nov 28 '16 22:11 amadeus

It is not easy. Because, pumvisible() works only in <expr> mappings.

Shougo avatar Nov 29 '16 21:11 Shougo

The fix #61 should improve this problem. @amadeus

maralla avatar Dec 21 '16 05:12 maralla

I would actually say since #61, the flickering has gotten worse. It now does it on every keystroke, when ideally it would never flicker at all, just update when new results have come in, even if it means the current ones are perhaps out of date?

I don't really know how completions work internally in Vim, so I can't say how easy or hard this is, but how it works in NeoComplete would definitely be the preferred experience if possible.

amadeus avatar Dec 24 '16 19:12 amadeus

The fix #61 should improve this problem. @amadeus

It closes the popup when every key stroke like g:deoplete#enable_refresh_always. Yes, the flicker will be worse. It is the accurate result though.

Shougo avatar Dec 25 '16 01:12 Shougo