message: Remove useless emsg* functions, leaving only emsgf

This commit is contained in:
ZyX
2016-03-07 09:29:38 +03:00
parent 9a56fcb2e8
commit 82f249f829
4 changed files with 59 additions and 105 deletions

View File

@@ -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 */