Benji Fisher wrote:

>      I noticed a case where the popup menu sticks around after I enter
> Command-Line mode.  I type (in Insert mode)
> 
>       fee fie fo fum
>       f<C-P><Esc>:
> 
> and I get the completion fum (since that is in my text so far) with
> the popup menu, and the menu is still there until I leave Command-Line
> mode.  If I wait a second after the <Esc> before typing the :, there is
> no problem.
> 
>      I narrowed this down.  (Someone, please pat me on the back for this
> job.  I had to sort through a bunch of plugins to narrow it down to my
> ftplugin/mail.vim and the matchparen plugin before I got this!)  It
> seems to depend on 'lazyredraw' and the CursorMoved,CursorMovedI
> autocommand events.  Just source the following lines and try the
> experiment above:
> 
> set nocp
> setlocal lazyredraw
> 
> let s:nop = 0
> autocmd! CursorMoved,CursorMovedI * let s:nop += + 1
> 
> Yes, it works with -u NONE.
> 
>      It may depend on having an xterm-like terminal, so that <Esc>
> triggers a delay ('timeoutlen' or something like that).  I use
> gnome-terminal (but I do not compile with Gnome support, just GTK2).

This is 'lazyredraw' preventing the redraw.  I think this works as
expected.

-- 
MORTICIAN:    What?
CUSTOMER:     Nothing -- here's your nine pence.
DEAD PERSON:  I'm not dead!
MORTICIAN:    Here -- he says he's not dead!
CUSTOMER:     Yes, he is.
DEAD PERSON:  I'm not!
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to