Hirohito Higashi wrote: > Hi Bram and List! > > How to reproduce: > - Prepare vimrc for reproduce. > $ cat xxx.vim > function! CustomComplete(lead, line, pos) > return ['あたし', 'あたま', 'あたりめ'] > endfunction > command -nargs=1 -complete=customlist,CustomComplete Test : > > - Run pure vim with above resource file. > $ vim -N -u xxx.vim > > - Do custom-list completion using longest match in command-line. > :Test <C-L> > > > Expected behavior: > - あた Completed. > :Test あた > > Actual behavior: > - あた<e3> Completed. > :Test あた<e3> > > I wrote a patch with test. > Please check it. > BTW, inside for-loop started 0 is waste. 1 is correct.
Thanks! I'll merge the two blocks, since there is much code in common. -- Two percent of zero is almost nothing. /// 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.