summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 15:58:22 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 15:58:22 +0000
commit74409f62790a93daf0965c71da01ff76aa0fa5a5 (patch)
treeece55c806dc6fe451d24af66008ae1444d81d73d /src/undo.c
parent56200eed62e59ad831f6564dcafe346e6f97ac20 (diff)
downloadvim-git-74409f62790a93daf0965c71da01ff76aa0fa5a5.tar.gz
patch 8.2.3970: error messages are spread outv8.2.3970
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/undo.c b/src/undo.c
index ae1db43d0..49a568157 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -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;
}
}