Andy Wokula wrote:

> 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>

Thanks for the clear description.  I can reproduce the crash.

-- 
I have a drinking problem -- I can't afford it.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui