Mercurial > vim
diff src/evalfunc.c @ 23853:a9ed31ab85c3 v8.2.2468
patch 8.2.2468: not easy to get the full command name from a shortened one
Commit: https://github.com/vim/vim/commit/038e09ee7645731de0296d255aabb17603276443
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 6 12:38:51 2021 +0100
patch 8.2.2468: not easy to get the full command name from a shortened one
Problem: Not easy to get the full command name from a shortened one.
Solution: Add fullcommand(). (Martin Tournoij, closes https://github.com/vim/vim/issues/7777)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Feb 2021 12:45:04 +0100 |
parents | a45a922832d4 |
children | 5db7d275543c |
line wrap: on
line diff
--- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -978,6 +978,8 @@ static funcentry_T global_functions[] = ret_string, f_foldtextresult}, {"foreground", 0, 0, 0, NULL, ret_void, f_foreground}, + {"fullcommand", 1, 1, FEARG_1, arg1_string, + ret_string, f_fullcommand}, {"funcref", 1, 3, FEARG_1, NULL, ret_func_any, f_funcref}, {"function", 1, 3, FEARG_1, NULL,