summaryrefslogtreecommitdiff
path: root/src/ex_cmds.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-24 23:00:18 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-24 23:00:18 +0200
commit822ba24743af9ee1b5e7f656a7a61a38f3638bca (patch)
tree7fb853a5f43c2d2682b4c9fd55a0e257e95d2446 /src/ex_cmds.h
parentf7271e831614d15d173c7f562cc26f48c2554ce9 (diff)
downloadvim-git-822ba24743af9ee1b5e7f656a7a61a38f3638bca.tar.gz
patch 8.2.0818: Vim9: using a discovery phase doesn't work wellv8.2.0818
Problem: Vim9: using a discovery phase doesn't work well. Solution: Remove the discovery phase, instead compile a function only when it is used. Add :defcompile to compile def functions earlier.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r--src/ex_cmds.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
index 25a0853bd..2d86c5dc7 100644
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -447,6 +447,9 @@ EXCMD(CMD_debuggreedy, "debuggreedy", ex_debuggreedy,
EXCMD(CMD_def, "def", ex_function,
EX_EXTRA|EX_BANG|EX_SBOXOK|EX_CMDWIN,
ADDR_NONE),
+EXCMD(CMD_defcompile, "defcompile", ex_defcompile,
+ EX_SBOXOK|EX_CMDWIN|EX_TRLBAR,
+ ADDR_NONE),
EXCMD(CMD_delcommand, "delcommand", ex_delcommand,
EX_NEEDARG|EX_WORD1|EX_TRLBAR|EX_CMDWIN,
ADDR_NONE),