With vim 7.1, enter the following statements on the command line:
:let l = ['toto', 'tutu']
:function Completion(A, L, P)
: return g:l
:endfunction
:command! -nargs=* -complete=customlist,Completion Test echo "Done"
The completion on 'tutu' is not right.
Typing:
:Test tu<Tab>
gives:
:Test toto
instead of:
:Test tutu
The same test using custom completion and a string instead of a
list, works fine.
Xavier
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---