diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-05 17:49:15 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-05 17:49:15 +0000 |
commit | 9d00e4a8146862c17ed429dc6b1b43349acb2b5f (patch) | |
tree | 79a1e0d0a738940dba6a9a86936376bd62e04ca3 /src/fileio.c | |
parent | d3a117814d6acbf0dca3eff1a7626843b9b3734a (diff) | |
download | vim-git-9d00e4a8146862c17ed429dc6b1b43349acb2b5f.tar.gz |
patch 8.2.4010: error messages are spread outv8.2.4010
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/fileio.c b/src/fileio.c index 739030985..c33625ad6 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -41,7 +41,6 @@ static char_u *check_for_cryptkey(char_u *cryptkey, char_u *ptr, long *sizep, of #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 @@ readfile( || (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 @@ readfile( || (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 @@ set_rw_fname(char_u *fname, char_u *sfname) 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; } |