aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/search.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-05 09:50:36 +0800
committerGitHub <noreply@github.com>2023-05-05 09:50:36 +0800
commit9ded4c127599b821d0875db9d63049b5970437a4 (patch)
tree04ab960fec3aaaf6d139164e27ee8c4c6ff8f900 /src/nvim/search.c
parentd79e72621226cae91c8d8f6ad23e3c0670e1211c (diff)
parentbdaaf2e8e113f8c32c70f83b60e0bf3f648357c1 (diff)
downloadrneovim-9ded4c127599b821d0875db9d63049b5970437a4.tar.gz
rneovim-9ded4c127599b821d0875db9d63049b5970437a4.tar.bz2
rneovim-9ded4c127599b821d0875db9d63049b5970437a4.zip
Merge pull request #23483 from zeertzjq/vim-8.2.3135
vim-patch:8.2.{3135,4890,4892},9.0.0250: error message improvements
Diffstat (limited to 'src/nvim/search.c')
-rw-r--r--src/nvim/search.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c
index 094476a5ee..8f1e9148d4 100644
--- a/src/nvim/search.c
+++ b/src/nvim/search.c
@@ -59,6 +59,11 @@
# include "search.c.generated.h"
#endif
+static const char e_search_hit_top_without_match_for_str[]
+ = N_("E384: Search hit TOP without match for: %s");
+static const char e_search_hit_bottom_without_match_for_str[]
+ = N_("E385: Search hit BOTTOM without match for: %s");
+
// This file contains various searching-related routines. These fall into
// three groups:
// 1. string searches (for /, ?, n, and N)
@@ -943,11 +948,9 @@ int searchit(win_T *win, buf_T *buf, pos_T *pos, pos_T *end_pos, Direction dir,
if (p_ws) {
semsg(_(e_patnotf2), mr_pattern);
} else if (lnum == 0) {
- semsg(_("E384: search hit TOP without match for: %s"),
- mr_pattern);
+ semsg(_(e_search_hit_top_without_match_for_str), mr_pattern);
} else {
- semsg(_("E385: search hit BOTTOM without match for: %s"),
- mr_pattern);
+ semsg(_(e_search_hit_bottom_without_match_for_str), mr_pattern);
}
}
return FAIL;