]> granicus.if.org Git - mutt/commitdiff
Fix #750 / deb#108628.
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 30 Aug 2001 08:20:45 +0000 (08:20 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 30 Aug 2001 08:20:45 +0000 (08:20 +0000)
curs_main.c

index a17e4d8957067cca7444eb36736c57ec817b6cb3..8baefbc2cbae8321df24a0862e479ac83a7dc8d2 100644 (file)
@@ -516,7 +516,7 @@ int mutt_index_menu (void)
 
     if (menu->menu == MENU_MAIN)
     {
-      if (Context)
+      if (Context && Context->hdrs)
       {
        menu_check_recenter (menu);
 
@@ -1565,7 +1565,7 @@ int mutt_index_menu (void)
 
       case OP_CREATE_ALIAS:
 
-       mutt_create_alias (Context && Context->vcount ? CURHDR->env : NULL, NULL);
+        mutt_create_alias (Context && Context->vcount ? CURHDR->env : NULL, NULL);
        MAYBE_REDRAW (menu->redraw);
         menu->redraw |= REDRAW_CURRENT;
        break;