Crash when a:curpos (0-based) accesses an invalid string index
in a:cmdline:
func! CrashComplete(arglead, cmdline, curpos)
" return ["ok"]
return [a:cmdline[a:curpos]]
endfunc
com! -nargs=* -complete=customlist,CrashComplete Testcmd echo <q-args>
" to reproduce:
:Testcmd <Tab>
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---