Hirohito Higashi wrote:

> How to reproduce:
> - Prepare the following vim script file.
>   $ cat sample1.vim
> function! Sample()
>     return 'autocmd '
> endfunction
> call feedkeys("i\<c-r>=Sample()\<CR>\<C-x>\<C-v>")
> 
> - Run vanilla vim with execute above file.
>   $ vim -Nu NONE -S sample1.vim
> 
> 
> Expected behavior (I think):
> Current line displayed `autocomd BufAdd` and popup menu is appeared.
> 
> 
> Actual behavior:
> completion is not performed.
> Below message diplayed in last line.
> "-- Command-line completion (^V^N^P) Pattern not found"
> 
> 
> Is this bug?
> I don't know. But I wrote a patch with a test.
> Please check an attached patch.

Isn't the problem that the completion is using ccline, but when getting
there from insert mode it's never set?  So ccline.cmdfirstc is "="
because of the previous command.


-- 
Drink wet cement and get really stoned.

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

Raspunde prin e-mail lui