A popup menu is not displayed when option `completeopt` includes both
`noinsert` and `noselect`.
[repro steps]
vimrc:
----
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
set completeopt+=noinsert,noselect
----
vim -u vimrc -N
i<F5>
expected: popup menu appears
actual: nothing happens
[cause]
v7-4-781:src/edit.c:2798 (in `set_completion`)
when `compl_no_insert==TRUE` and `compl_no_select==TRUE`, `ins_complete` is not
called.
[patch]
I propose this patch;
https://gist.githubusercontent.com/ichizok/7cb1c964856cd599fcd6/raw/b6fec207b77d6b8c2d927fa619351c090b7229f4/edit.c.diff
--
--
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.