diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-03 21:35:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-03 21:35:53 +0100 |
commit | 1d84f7608f1e41dad03b8cc7925895437775f7c0 (patch) | |
tree | cc276825566021a35b96f93e178e5f2ac621a84b /src/ex_cmds.h | |
parent | 06d32a0c177e4166ff0491668cd459464bc2ef45 (diff) | |
download | vim-git-1d84f7608f1e41dad03b8cc7925895437775f7c0.tar.gz |
patch 9.0.0370: cleaning up afterwards can make a function messyv9.0.0370
Problem: Cleaning up afterwards can make a function messy.
Solution: Add the :defer command.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r-- | src/ex_cmds.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h index 8da0da1c9..8f7c48f8b 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -467,6 +467,9 @@ EXCMD(CMD_def, "def", ex_function, EXCMD(CMD_defcompile, "defcompile", ex_defcompile, EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK|EX_TRLBAR|EX_EXTRA, ADDR_NONE), +EXCMD(CMD_defer, "defer", ex_call, + EX_NEEDARG|EX_EXTRA|EX_NOTRLCOM|EX_EXPR_ARG|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK, + ADDR_NONE), EXCMD(CMD_delcommand, "delcommand", ex_delcommand, EX_NEEDARG|EX_WORD1|EX_TRLBAR|EX_CMDWIN|EX_LOCK_OK, ADDR_NONE), |