The 2019-12-09 22:06, Bram Moolenaar wrote:
It should not flicker that much.  Especially now that a mask is used to
only redraw what is needed.

Yes that's the tricky bit, it doesn't flicker nearly that much in a minimal example, so it's hard to demonstrate. But here is a minimal example and there _is_ flickering, particularly when moving from completion items with no 'info' to items _with_ 'info':

https://asciinema.org/a/qAVyBR43LeuGgM2jenE4Mb3VS

The example here is the following, where the completion menu is triggered with `<C-x><C-u>`:

```vim

func DummyComplete(findstart, base)
 if a:findstart
   return 0
 else
   let info = range(100)->map({_ -> 'abcde'})->join()
   let noinfo_items = range(5)->map({i -> #{ word: 'word_'..(i+5) }})
   let info_items = range(5, 10)->map({i -> #{ word: 'word_'..i, info: info }})
   return noinfo_items + info_items
 endif
endfunc


set completeopt+=popup
setlocal completefunc=DummyComplete
```

Regards, Nick

--
--
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20191209214402.GA11540%40KERERU.localdomain.

Raspunde prin e-mail lui