diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-02-06 12:38:51 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-02-06 12:38:51 +0100 |
commit | 038e09ee7645731de0296d255aabb17603276443 (patch) | |
tree | 26fde6ff5abd96317ca5455594fc50fa17cd0dcf /src/evalfunc.c | |
parent | 139348f3e8370826a1ceb10c73f7c7bb586f8125 (diff) | |
download | vim-git-038e09ee7645731de0296d255aabb17603276443.tar.gz |
patch 8.2.2468: not easy to get the full command name from a shortened onev8.2.2468
Problem: Not easy to get the full command name from a shortened one.
Solution: Add fullcommand(). (Martin Tournoij, closes #7777)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index f15139f36..01994b047 100644 --- 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, |