1
0
forked from aniani/vim

patch 8.2.3987: 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 21:26:16 +00:00
parent b09feaa86e
commit 1d423ef75f
19 changed files with 237 additions and 85 deletions

View File

@@ -2222,13 +2222,13 @@ tgetent_error(char_u *tbuf, char_u *term)
if (i < 0)
# ifdef TGETENT_ZERO_ERR
return _("E557: Cannot open termcap file");
return _(e_cannot_open_termcap_file);
if (i == 0)
# endif
#ifdef TERMINFO
return _("E558: Terminal entry not found in terminfo");
return _(e_terminal_entry_not_found_in_terminfo);
#else
return _("E559: Terminal entry not found in termcap");
return _(e_terminal_entry_not_found_in_termcap);
#endif
}
return NULL;