aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorBrian Leung <leungbk@posteo.net>2022-04-03 01:37:28 -0700
committerBrian Leung <leungbk@posteo.net>2022-04-03 15:57:07 -0700
commit271bb32855853b011fceaf0ad2f829bce66b2a19 (patch)
treea13efbe2922f6d5beccee30631ffdfe5f38aa90a /src/nvim/vim.h
parentd73bf3138a802bb6c1c654cd913d4e91932287f8 (diff)
downloadrneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.tar.gz
rneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.tar.bz2
rneovim-271bb32855853b011fceaf0ad2f829bce66b2a19.zip
vim-patch:8.2.4639: not sufficient parenthesis in preprocessor macros
Problem: Not sufficient parenthesis in preprocessor macros. Solution: Add more parenthesis. https://github.com/vim/vim/commit/9dac9b1751dd43c02470cc6a2aecaeea27abcc80
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h6
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