p = ea.cmd;
while (ASCII_ISALNUM(*p))
++p;
- p = vim_strnsave(ea.cmd, (int)(p - ea.cmd));
+ p = vim_strnsave(ea.cmd, p - ea.cmd);
ret = apply_autocmds(EVENT_CMDUNDEFINED, p, p, TRUE, NULL);
vim_free(p);
// If the autocommands did something and didn't cause an error, try
|| eap->cmdidx == CMD_view))
{
exmode_active = FALSE;
+ ex_pressedreturn = FALSE;
if (*eap->arg == NUL)
{
// Special case: ":global/pat/visual\NLvi-commands"
endtry
call assert_equal(1, caught_e565)
au! InsertCharPre
+
+ new
+ au CmdLineEnter * call ExEnterFunc()
+ func ExEnterFunc()
+
+ endfunc
+ call feedkeys("gQvi\r", 'xt')
+
+ au! CmdLineEnter
+ delfunc ExEnterFunc
+ quit
endfunc
" vim: shiftwidth=2 sts=2 expandtab