mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: missing parenthesis may cause unexpected problems (#17443)
related vim-8.2.{4402,4639}
This commit is contained in:
@@ -3799,7 +3799,7 @@ bool map_to_exists(const char *const str, const char *const modechars, const boo
|
||||
#define MAPMODE(mode, modechars, chr, modeflags) \
|
||||
do { \
|
||||
if (strchr(modechars, chr) != NULL) { \
|
||||
mode |= modeflags; \
|
||||
(mode) |= (modeflags); \
|
||||
} \
|
||||
} while (0)
|
||||
MAPMODE(mode, modechars, 'n', MODE_NORMAL);
|
||||
|
Reference in New Issue
Block a user