diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-24 19:08:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-24 19:08:24 +0200 |
commit | bdc0f1c6986e5d64f647e0924a4de795b47c549a (patch) | |
tree | d314ca4f02d7e8e13072ebef2ed4ba92be403083 /src/ex_cmds.h | |
parent | 96cf4ba8fb96e5778192d2dab7458b9a7da0a49d (diff) | |
download | vim-git-bdc0f1c6986e5d64f647e0924a4de795b47c549a.tar.gz |
patch 8.2.2806: Vim9: using "++nr" as a command might not workv8.2.2806
Problem: Vim9: using "++nr" as a command might not work.
Solution: Do not recognize "++" and "--" in a following line as addition or
subtraction.
Diffstat (limited to 'src/ex_cmds.h')
-rw-r--r-- | src/ex_cmds.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds.h b/src/ex_cmds.h index 819cf732c..aee2e6f72 100644 --- a/src/ex_cmds.h +++ b/src/ex_cmds.h @@ -1846,6 +1846,14 @@ EXCMD(CMD_X, "X", ex_X, EX_TRLBAR, ADDR_NONE), +// Commands that are recognized only in find_ex_command(). +EXCMD(CMD_increment, "++", ex_incdec, + EX_EXTRA|EX_NOTRLCOM|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK, + ADDR_NONE), +EXCMD(CMD_decrement, "--", ex_incdec, + EX_EXTRA|EX_NOTRLCOM|EX_SBOXOK|EX_CMDWIN|EX_LOCK_OK, + ADDR_NONE), + #undef EXCMD #ifndef DO_DECLARE_EXCMD |