Manuel Ortega wrote: > If you try to run a nonexistent user command while there is an > installed CmdUndefined autocmd, Vim will show the wrong error message. > It shows E464 instead of E492. Here is a minimal example. > > $ vim -u NONE -N > > Now do: > > au CmdUndefined Snowflake echo "FOO" > > Now do: > > :Hanky > > What I expect to see is "E492: Not an editor command: Hanky". This > is, of course, what would be shown had I not made a CmdUndefined > autocmd. > > What I actually see is: "E464: Ambiguous use of user-defined command", > which seems wrong. "Hanky" is not ambiguous between multiple > user-defined commands, as there are no user-defined commands. "Hanky" > is also not a substring of "Snowflake", either, nor did I hit <TAB>, > so I don't see why there would be any autocompletion issues to worry > about.
Yes, that is wrong. I also don't see a test for CmdUndefined. -- Every person is responsible for the choices he makes. /// 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.