forked from aniani/vim
patch 8.2.2806: Vim9: using "++nr" as a command might not work
Problem: Vim9: using "++nr" as a command might not work. Solution: Do not recognize "++" and "--" in a following line as addition or subtraction.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user