From: Richard Russon Date: Fri, 16 Sep 2016 18:51:47 +0000 (+0100) Subject: quasi-delete: check there's a selection X-Git-Tag: neomutt-20161002~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d88259204f83c395436568313a4f64db3687b1f;p=neomutt quasi-delete: check there's a selection If you created a vfolder with no contents, then tried to quasi-delete something, it would crash. --- diff --git a/curs_main.c b/curs_main.c index f71e4e5fb..f04fd9d2b 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1623,6 +1623,8 @@ int mutt_index_menu (void) break; case OP_MAIN_QUASI_DELETE: + CHECK_MSGCOUNT; + CHECK_VISIBLE; if (tag) { for (j = 0; j < Context->vcount; j++) { if (Context->hdrs[Context->v2r[j]]->tagged) {