1
0
forked from aniani/vim

patch 8.2.3985: 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-02 19:25:26 +00:00
parent 3d0da09bb2
commit ac78dd4a35
23 changed files with 285 additions and 104 deletions

View File

@@ -2007,7 +2007,7 @@ file_name_in_line(
if (*ptr == NUL) // nothing found
{
if (options & FNAME_MESS)
emsg(_("E446: No file name under cursor"));
emsg(_(e_no_file_name_under_cursor));
return NULL;
}
@@ -2165,7 +2165,7 @@ find_file_name_in_path(
{
c = ptr[len];
ptr[len] = NUL;
semsg(_("E447: Can't find file \"%s\" in path"), ptr);
semsg(_(e_cant_find_file_str_in_path_2), ptr);
ptr[len] = c;
}