summaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-04-22 13:02:06 -0700
committerKevin McCarthy <kevin@8t8.us>2018-04-22 13:02:06 -0700
commit26b822025b258d99e05b6c236669847efe9b3dfb (patch)
tree7eca76a0ce8d66990a0faa02804525263dd6d3c4 /menu.c
parentf2e8392fee22230f259dc75b3a022ebb04596988 (diff)
Add Error History function and config var.
<error-history>, by default unbound, shows a list of the recent error messages displayed by Mutt via mutt_message() or mutt_error(). $error_history sets the size of the history ring. For now, I've decided to include mutt_message() messages too. If this is too chatty, we can restrict it to mutt_error() easily in the future.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/menu.c b/menu.c
index 8a6be010..dfd8fa75 100644
--- a/menu.c
+++ b/menu.c
@@ -1202,6 +1202,11 @@ int mutt_menuLoop (MUTTMENU *menu)
menu->redraw = REDRAW_FULL;
break;
+ case OP_ERROR_HISTORY:
+ mutt_error_history_display ();
+ menu->redraw = REDRAW_FULL;
+ break;
+
case OP_NULL:
km_error_key (menu->menu);
break;