Patch 7.4.2014 Problem: Using "noinsert" in 'completeopt' does not insert match. Solution: Set compl_enter_selects. (Shougo, closes #875) Files: src/edit.c, src/testdir/test_popup.vim
*** ../vim-7.4.2013/src/edit.c 2016-07-09 21:48:59.702071022 +0200 --- src/edit.c 2016-07-09 21:51:14.168060060 +0200 *************** *** 2831,2836 **** --- 2831,2837 ---- } else ins_complete(Ctrl_N, FALSE); + compl_enter_selects = compl_no_insert; /* Lazily show the popup menu, unless we got interrupted. */ if (!compl_interrupted) *** ../vim-7.4.2013/src/testdir/test_popup.vim 2016-07-09 21:48:59.702071022 +0200 --- src/testdir/test_popup.vim 2016-07-09 21:54:03.469528319 +0200 *************** *** 49,56 **** --- 49,68 ---- call feedkeys("i\<F5>soun\<CR>\<CR>\<ESC>.", 'tx') call assert_equal('soundfold', getline(1)) call assert_equal('soundfold', getline(2)) + bwipe! + new + inoremap <F5> <C-R>=Test()<CR> + call feedkeys("i\<F5>\<CR>\<ESC>", 'tx') + call assert_equal('source', getline(1)) bwipe! + set completeopt-=noinsert iunmap <F5> endfunc + + + function! Test() abort + call complete(1, ['source', 'soundfold']) + return '' + endfunction *** ../vim-7.4.2013/src/version.c 2016-07-09 21:48:59.702071022 +0200 --- src/version.c 2016-07-09 21:54:55.776746158 +0200 *************** *** 760,761 **** --- 760,763 ---- { /* Add new patch number below this line */ + /**/ + 2014, /**/ -- If VIM were a woman, I'd marry her. Slim, organized, helpful and beautiful; what's not to like? --David A. Rogers /// Bram Moolenaar -- b...@moolenaar.net -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.