summaryrefslogtreecommitdiffstats
path: root/src/evalfunc.c
diff options
context:
space:
mode:
authorErnie Rael <errael@raelity.com>2022-04-24 18:40:28 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-24 18:40:28 +0100
commit659c240cf769925ff432b88df8719e7ace4629b0 (patch)
treedb1831765bb4392807a11a7b05c2b791f6a71894 /src/evalfunc.c
parenta4e3332650021921068ef12923b4501c5b9918cb (diff)
patch 8.2.4820: not simple programmatic way to find a specific mappingv8.2.4820
Problem: Not simple programmatic way to find a specific mapping. Solution: Add getmappings(). (Ernie Rael, closes #10273)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r--src/evalfunc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c
index f6d4b05e04..090f3a7364 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -1871,6 +1871,8 @@ static funcentry_T global_functions[] =
ret_getline, f_getline},
{"getloclist", 1, 2, 0, arg2_number_dict_any,
ret_list_or_dict_1, f_getloclist},
+ {"getmappings", 0, 0, 0, NULL,
+ ret_list_dict_any, f_getmappings},
{"getmarklist", 0, 1, FEARG_1, arg1_buffer,
ret_list_dict_any, f_getmarklist},
{"getmatches", 0, 1, 0, arg1_number,