Yasuhiro Matsumoto wrote:

> When completion popup is displayed, the popup window flicker with typing
> several keys.
> 
> --------------
> asdfasdf1
> asdfasdf1211
> asdfasdf12222
> asdfasdf123222
> asdfasdf123223
> asdfasdf13
> asdfasdf2
> --------------
> 
> 1. type <c-x><c-n><c-p> at empty line
>   show popup window and clear candidate.
> 
> 2. type 'asdf12' immediately
> 
> I guess this causes is calling update_screen(0). When typing some keys while
> completing, update_screen(0) is called every time. But update_screen(0) is
> called at follow:
> 
> * when showing popup
> * when closing popup
> * when resized popup
> 
> So I'm thinking it don't need to call update_screen(0) while completing.
> However, redrawing status_line is needed.
> 
> How do you think? Below is a patch.
> 
> https://gist.github.com/5747173
> 
> I make sure this patch fixes the flicker.

Have you tried a completion near the end of the line, where inserting
the completed word makes the rest of the text move down?  If I remember
correctly this caused the screen to be messed up.

-- 
All true wisdom is found on T-shirts.

 /// 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].
For more options, visit https://groups.google.com/groups/opt_out.


Raspunde prin e-mail lui