summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-02 17:00:40 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-02 17:00:40 +0000
commiteaaac014a01ce37c1f86dbda054c01a5c6f034e7 (patch)
treeb775ac0b4332e8f73bc763ed1414f73639c187d6 /src/normal.c
parent8bfa0eb863357c1013024233ebb2e95a0a848002 (diff)
downloadvim-git-eaaac014a01ce37c1f86dbda054c01a5c6f034e7.tar.gz
patch 8.2.3983: error messages are spread outv8.2.3983
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/normal.c b/src/normal.c
index 165b1856b..79e47a69a 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -128,8 +128,6 @@ static void nv_drop(cmdarg_T *cap);
#endif
static void nv_cursorhold(cmdarg_T *cap);
-static char *e_noident = N_("E349: No identifier under cursor");
-
/*
* Function to be called for a Normal or Visual mode command.
* The argument is a cmdarg_T.
@@ -1645,9 +1643,9 @@ find_ident_at_pos(
if ((find_type & FIND_NOERROR) == 0)
{
if (find_type & FIND_STRING)
- emsg(_("E348: No string under cursor"));
+ emsg(_(e_no_string_under_cursor));
else
- emsg(_(e_noident));
+ emsg(_(e_no_identifier_under_cursor));
}
return 0;
}
@@ -3683,7 +3681,7 @@ nv_ident(cmdarg_T *cap)
|| STRCMP(kp, ":help") == 0);
if (kp_help && *skipwhite(ptr) == NUL)
{
- emsg(_(e_noident)); // found white space only
+ emsg(_(e_no_identifier_under_cursor)); // found white space only
return;
}
kp_ex = (*kp == ':');
@@ -3734,7 +3732,8 @@ nv_ident(cmdarg_T *cap)
}
if (n == 0)
{
- emsg(_(e_noident)); // found dashes only
+ // found dashes only
+ emsg(_(e_no_identifier_under_cursor));
vim_free(buf);
return;
}