patch 8.2.4010: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/fileio.c b/src/fileio.c
index 7390309..c33625a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -41,7 +41,6 @@
#endif
static linenr_T readfile_linenr(linenr_T linecnt, char_u *p, char_u *endp);
static char_u *check_for_bom(char_u *p, long size, int *lenp, int flags);
-static char *e_auchangedbuf = N_("E812: Autocommands changed buffer or buffer name");
#ifdef FEAT_EVAL
static int readdirex_sort;
@@ -527,7 +526,7 @@
|| (using_b_fname
&& (old_b_fname != curbuf->b_fname)))
{
- emsg(_(e_auchangedbuf));
+ emsg(_(e_autocommands_changed_buffer_or_buffer_name));
return FAIL;
}
}
@@ -605,7 +604,7 @@
|| (using_b_ffname && (old_b_ffname != curbuf->b_ffname))
|| (using_b_fname && (old_b_fname != curbuf->b_fname))))
{
- emsg(_(e_auchangedbuf));
+ emsg(_(e_autocommands_changed_buffer_or_buffer_name));
if (!read_buffer)
close(fd);
return FAIL;
@@ -3012,7 +3011,7 @@
if (curbuf != buf)
{
// We are in another buffer now, don't do the renaming.
- emsg(_(e_auchangedbuf));
+ emsg(_(e_autocommands_changed_buffer_or_buffer_name));
return FAIL;
}