summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-12-10 11:06:25 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-12-10 11:06:25 +0000
commit09201a6910a15a2e9e4351d3438d821eda5586ec (patch)
tree8ac7b136e5ef854acd80364678a33732fa8898d3 /menu.c
parentdd98acae5c80c159931fc95cd3302e99e8501d46 (diff)
Fix tag-prefix.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/menu.c b/menu.c
index 60300706..4e643085 100644
--- a/menu.c
+++ b/menu.c
@@ -676,10 +676,19 @@ int mutt_menuLoop (MUTTMENU *menu)
i = km_dokey (menu->menu);
if (i == OP_TAG_PREFIX)
{
- mvaddstr (LINES - 1, 0, "Tag-");
- i = km_dokey (menu->menu);
- menu->tagprefix = 1;
- CLEARLINE (LINES - 1);
+ if (menu->tagged)
+ {
+ mvaddstr (LINES - 1, 0, "Tag-");
+ clrtoeol ();
+ i = km_dokey (menu->menu);
+ menu->tagprefix = 1;
+ CLEARLINE (LINES - 1);
+ }
+ else
+ {
+ mutt_error _("No tagged entries.");
+ i = -1;
+ }
}
else if (menu->tagged && option (OPTAUTOTAG))
menu->tagprefix = 1;