aboutsummaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 06a4764250..9ffec654d1 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -900,6 +900,17 @@ int emsgn(char_u *s, int64_t n)
}
/*
+ * Print an error message with one "%" PRIu64 and one (uint64_t) argument.
+ */
+int emsgu(char_u *s, uint64_t n)
+{
+ if (emsg_not_now())
+ return TRUE; /* no error messages at the moment */
+ vim_snprintf((char *)IObuff, IOSIZE, (char *)s, n);
+ return emsg(IObuff);
+}
+
+/*
* Read 2 bytes from "fd" and turn them into an int, MSB first.
*/
int get2c(FILE *fd)