aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/getchar.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-05 07:14:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-05 09:20:30 +0800
commit88cfb49bee3c9102082c7010acb92244e4ad1348 (patch)
tree14c4ab0d2b319f83c42d940b00aebd42e8d971ac /src/nvim/getchar.c
parentb8d5586d5b0d1e2d25533ee398d16bb2e8412820 (diff)
downloadrneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.gz
rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.tar.bz2
rneovim-88cfb49bee3c9102082c7010acb92244e4ad1348.zip
vim-patch:8.2.4890: inconsistent capitalization in error messages
Problem: Inconsistent capitalization in error messages. Solution: Make capitalization consistent. (Doug Kearns) https://github.com/vim/vim/commit/cf030578b26460643dca4a40e7f2e3bc19c749aa Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/getchar.c')
-rw-r--r--src/nvim/getchar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index 057043b225..69a77e1e89 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -133,6 +133,8 @@ static size_t last_recorded_len = 0; // number of last recorded chars
# include "getchar.c.generated.h"
#endif
+static const char e_recursive_mapping[] = N_("E223: Recursive mapping");
+
// Free and clear a buffer.
void free_buff(buffheader_T *buf)
{
@@ -2135,7 +2137,7 @@ static int handle_mapping(int *keylenp, const bool *timedout, int *mapdepth)
// Put the replacement string in front of mapstr.
// The depth check catches ":map x y" and ":map y x".
if (++*mapdepth >= p_mmd) {
- emsg(_("E223: recursive mapping"));
+ emsg(_(e_recursive_mapping));
if (State & MODE_CMDLINE) {
redrawcmdline();
} else {