0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.3069: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move some error messages to errors.h.  Use clearer names.
This commit is contained in:
Bram Moolenaar
2021-06-27 22:03:33 +02:00
parent d887297ad0
commit 108010aa47
32 changed files with 130 additions and 109 deletions

View File

@@ -5210,7 +5210,7 @@ nv_Replace(cmdarg_T *cap)
else if (!checkclearopq(cap->oap))
{
if (!curbuf->b_p_ma)
emsg(_(e_modifiable));
emsg(_(e_cannot_make_changes_modifiable_is_off));
else
{
if (virtual_active())
@@ -5235,7 +5235,7 @@ nv_vreplace(cmdarg_T *cap)
else if (!checkclearopq(cap->oap))
{
if (!curbuf->b_p_ma)
emsg(_(e_modifiable));
emsg(_(e_cannot_make_changes_modifiable_is_off));
else
{
if (cap->extra_char == Ctrl_V) // get another character
@@ -7075,7 +7075,7 @@ nv_edit(cmdarg_T *cap)
else if (!curbuf->b_p_ma && !p_im)
{
// Only give this error when 'insertmode' is off.
emsg(_(e_modifiable));
emsg(_(e_cannot_make_changes_modifiable_is_off));
clearop(cap->oap);
if (cap->cmdchar == K_PS)
// drop the pasted text