diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2022-01-29 13:06:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-29 13:06:40 +0000 |
commit | 4dc0dd869972ddafc7d9ee5ea765645b818a6dc9 (patch) | |
tree | 1b59dc8582e8236af2059d4bc640d48a0f9d8285 /src/evalfunc.c | |
parent | 97c554d5149c2aa4a43d689c59563e77277265d4 (diff) |
patch 8.2.4252: generating the normal command table at runtime is inefficientv8.2.4252
Problem: Generating the normal command table at runtime is inefficient.
Solution: Generate the table with a Vim script and put it in a header file.
(Yegappan Lakshmanan, closes #9648)
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 045e5444f3..879fe2239f 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -1737,6 +1737,8 @@ static funcentry_T global_functions[] = ret_string, f_inputsecret}, {"insert", 2, 3, FEARG_1, arg23_insert, ret_first_arg, f_insert}, + {"internal_get_nv_cmdchar", 1, 1, FEARG_1, arg1_number, + ret_number, f_internal_get_nv_cmdchar}, {"interrupt", 0, 0, 0, NULL, ret_void, f_interrupt}, {"invert", 1, 1, FEARG_1, arg1_number, |