aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-03-07 09:29:38 +0300
committerZyX <kp-pav@yandex.ru>2016-04-18 02:48:20 +0300
commit82f249f8297a26ef3fcb9675acebd76476bb40e4 (patch)
treeb9e9ee303383967b534d9f451d4367dd82047ca8 /src/nvim/vim.h
parent9a56fcb2e8e97dec1e4ebce1d1287e7ab8a6ee79 (diff)
downloadrneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.tar.gz
rneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.tar.bz2
rneovim-82f249f8297a26ef3fcb9675acebd76476bb40e4.zip
message: Remove useless emsg* functions, leaving only emsgf
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h5
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 */