From 599a3d6abd29f4be9704361ea9e55656ac331a9b Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 26 Dec 2021 11:25:57 +0800 Subject: fixup! vim-patch:8.2.2468: not easy to get the full command name from a shortened one --- src/nvim/ex_docmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 61686b48f0..ed5c5027d4 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -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); } -- cgit