I just tested this patch, and it doesn't quite work the way it had originally 
(before this bug).

I have the following map in my .vimrc:

inoremap <c-l> <esc>A

I often use that to jump to the end of a line while in insert mode. However, 
this patch just means that nothing happens when I press <c-l>, whereas before 
the cursor would jump to the end of the line. Now I have to first close the pop 
up, and then I can use <c-l>.

So it's good in the sense that it fixes the previous issue where <c-l> would 
cycle through the popup options, however now it just prevents anything from 
happening.

Hope this all made sense.

On Monday, January 5, 2015 10:38:43 AM UTC-8, Amadeus Demarzi wrote:
> +1 on getting this fixed. This bug has been pretty annoying as of late.
> 
> Cheers
> 
> On Monday, January 5, 2015 5:06:09 AM UTC-8, mattn wrote:
> > Sorry it's an expected
> > 
> > On 1/5/15, mattn <[email protected]> wrote:
> > >
> > > bug.vim
> > > -------------------
> > > set nocompatible
> > >
> > > inoremap <F5> <C-R>=ListMonths()<CR>
> > >
> > > func! ListMonths()
> > >   call complete(col('.'), ['January', 'February', 'March',
> > >         \ 'April', 'May', 'June', 'July', 'August', 'September',
> > >         \ 'October', 'November', 'December'])
> > >   return ''
> > > endfunc
> > > -------------------
> > >
> > > 1. vim -u bug.vim -N
> > >
> > > 2. press F5
> > >
> > > 3. type Ctrl-L while popup menu is visible
> > >
> > > Ctrl-L should not behave like Ctrl-P. ins_compl_key2dir() handles suffix
> > > keys after CTRL-X. And also it handles keys while popup menu is visible 
> > > (ex:
> > > CTRL-P/CTRL-N). This should be cleanly separated.
> > >
> > > https://gist.github.com/mattn/2c83d5a17c9e9505e43d
> > >
> > > - Yasuhiro Matsumoto
> > >
> > > --
> > > --
> > > 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/d/optout.
> > >
> > 
> > 
> > -- 
> > - Yasuhiro Matsumoto

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui