diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-04 07:54:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-04 07:54:34 +0800 |
commit | 4e0a825262ffb2857def79fe1db5c7830c484b5b (patch) | |
tree | 363e9a7044ab99000c9efeefe026d467f4ab3512 /src/nvim/vim.h | |
parent | a93b55273f76e5fe23f614e691536435999f4452 (diff) | |
parent | 33909b65640a9884f7716bb2d6d73cb75931135b (diff) | |
download | rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.gz rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.tar.bz2 rneovim-4e0a825262ffb2857def79fe1db5c7830c484b5b.zip |
Merge pull request #17987 from leungbk/vim-patch-4402
vim-patch:8.2.{4639,4402}: missing parenthesis may cause unexpected problems
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r-- | src/nvim/vim.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h index 5d632b1b25..f65dd4f0d4 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -264,7 +264,7 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext() // Prefer using semsg(), because perror() may send the output to the wrong // destination and mess up the screen. -#define PERROR(msg) (void)semsg("%s: %s", msg, strerror(errno)) +#define PERROR(msg) (void)semsg("%s: %s", (msg), strerror(errno)) #define SHOWCMD_COLS 10 // columns needed by shown command @@ -319,7 +319,7 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext() #endif // Replacement for nchar used by nv_replace(). -#define REPLACE_CR_NCHAR -1 -#define REPLACE_NL_NCHAR -2 +#define REPLACE_CR_NCHAR (-1) +#define REPLACE_NL_NCHAR (-2) #endif // NVIM_VIM_H |