diff options
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r-- | src/nvim/vim.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h index a94b2e12f2..e01b54e21c 100644 --- a/src/nvim/vim.h +++ b/src/nvim/vim.h @@ -273,10 +273,9 @@ enum { #include "nvim/message.h" -/* Prefer using emsg3(), because perror() may send the output to the wrong +/* Prefer using emsgf(), because perror() may send the output to the wrong * destination and mess up the screen. */ -#define PERROR(msg) \ - (void) emsg3((char_u *) "%s: %s", (char_u *)msg, (char_u *)strerror(errno)) +#define PERROR(msg) (void) emsgf("%s: %s", msg, strerror(errno)) #define SHOWCMD_COLS 10 /* columns needed by shown command */ #define STL_MAX_ITEM 80 /* max nr of %<flag> in statusline */ |