summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-02 21:26:16 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-02 21:26:16 +0000
commit1d423ef75fc8bce2edfd2aab61cc9beaa63e31aa (patch)
tree6db703ecd2dc317aa69c9c03f3130002a857e4af /src/tag.c
parentb09feaa86ecc53b9b953710082496951776dc5c6 (diff)
downloadvim-git-1d423ef75fc8bce2edfd2aab61cc9beaa63e31aa.tar.gz
patch 8.2.3987: error messages are spread outv8.2.3987
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/tag.c b/src/tag.c
index b2d610a88..5e890e494 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -84,8 +84,6 @@ static int add_llist_tags(char_u *tag, int num_matches, char_u **matches);
#endif
static void tagstack_clear_entry(taggy_T *item);
-static char_u *bottommsg = (char_u *)N_("E555: at bottom of tag stack");
-static char_u *topmsg = (char_u *)N_("E556: at top of tag stack");
#ifdef FEAT_EVAL
static char_u *recurmsg = (char_u *)N_("E986: cannot modify the tag stack within tagfunc");
static char_u *tfu_inv_ret_msg = (char_u *)N_("E987: invalid return value from tagfunc");
@@ -377,7 +375,7 @@ do_tag(
#endif
if ((tagstackidx -= count) < 0)
{
- emsg(_(bottommsg));
+ emsg(_(e_at_bottom_of_tag_stack));
if (tagstackidx + count == 0)
{
// We did [num]^T from the bottom of the stack
@@ -390,7 +388,7 @@ do_tag(
}
else if (tagstackidx >= tagstacklen) // count == 0?
{
- emsg(_(topmsg));
+ emsg(_(e_at_top_of_tag_stack));
goto end_do_tag;
}
@@ -461,12 +459,12 @@ do_tag(
* position.
*/
tagstackidx = tagstacklen - 1;
- emsg(_(topmsg));
+ emsg(_(e_at_top_of_tag_stack));
save_pos = FALSE;
}
else if (tagstackidx < 0) // must have been count == 0
{
- emsg(_(bottommsg));
+ emsg(_(e_at_bottom_of_tag_stack));
tagstackidx = 0;
goto end_do_tag;
}