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

patch 8.2.3970: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-01 15:58:22 +00:00
parent 56200eed62
commit 74409f6279
39 changed files with 161 additions and 131 deletions

View File

@@ -333,7 +333,7 @@ undo_allowed(void)
// caller of getcmdline() may get confused.
if (textwinlock != 0 || textlock != 0)
{
emsg(_(e_textlock));
emsg(_(e_not_allowed_to_change_text_here));
return FALSE;
}
@@ -438,12 +438,12 @@ u_savecommon(
{
if (netbeans_is_guarded(top, bot))
{
emsg(_(e_guarded));
emsg(_(e_region_is_guarded_cannot_modify));
return FAIL;
}
if (curbuf->b_p_ro)
{
emsg(_(e_nbreadonly));
emsg(_(e_netbeans_does_not_allow_changes_in_read_only_files));
return FAIL;
}
}