Mercurial > vim
diff src/normal.c @ 25064:8f2262c72178 v8.2.3069
patch 8.2.3069: error messages are spread out
Commit: https://github.com/vim/vim/commit/108010aa4720ef023a8ac59004fc0f2bc11125af
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 27 22:03:33 2021 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Jun 2021 22:15:04 +0200 |
parents | f1121eb17e14 |
children | aa55d6d17625 |
line wrap: on
line diff
--- a/src/normal.c +++ b/src/normal.c @@ -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