fixup! vim-patch:8.2.2468: not easy to get the full command name from a shortened one

This commit is contained in:
zeertzjq 2021-12-26 11:25:57 +08:00
parent ccc4d83507
commit 599a3d6abd

View File

@ -2920,7 +2920,7 @@ void f_fullcommand(typval_T *argvars, typval_T *rettv, FunPtr fptr)
return;
}
rettv->vval.v_string = vim_strsave(ea.cmdidx < 0
rettv->vval.v_string = vim_strsave(IS_USER_CMDIDX(ea.cmdidx)
? get_user_commands(NULL, ea.useridx)
: cmdnames[ea.cmdidx].cmd_name);
}