Nick Spoons wrote:

> 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
> ```

Thanks for the example, I can see the problem.

When the info popup is used redrawing is done differently and a flag
isn't set that avoids drawing over the popup menu. Let me set that flag
check for side effects.

BTW: still looking for nice screenshots to use in the Vim 8.2
announcement.

-- 
"Marriage is a wonderful institution...
but who wants to live in an institution?"
 - Groucho Marx

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/201912102038.xBAKcVVW022863%40masaka.moolenaar.net.

Raspunde prin e-mail lui