0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4008: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-05 16:09:06 +00:00
parent 8e7d9db32b
commit 677658ae49
28 changed files with 187 additions and 76 deletions

View File

@@ -1862,7 +1862,7 @@ f_trim(typval_T *argvars, typval_T *rettv)
rettv->vval.v_string = vim_strnsave(head, tail - head);
}
static char *e_printf = N_("E766: Insufficient arguments for printf()");
static char *e_printf = N_(e_insufficient_arguments_for_printf);
/*
* Get number argument from "idxp" entry in "tvs". First entry is 1.
@@ -2961,7 +2961,7 @@ vim_vsnprintf_typval(
}
if (tvs != NULL && tvs[arg_idx - 1].v_type != VAR_UNKNOWN)
emsg(_("E767: Too many arguments to printf()"));
emsg(_(e_too_many_arguments_to_printf));
// Return the number of characters formatted (excluding trailing nul
// character), that is, the number of characters that would have been