break;
}
}
+
+/**
+ * message_is_visible - Is a message in the index within limit
+ * @param ctx Open mailbox
+ * @param index Message ID (index into `ctx->emails[]`
+ * @retval true The message is within limit
+ *
+ * If no limit is in effect, all the messages are visible.
+ */
+bool message_is_visible(struct Context *ctx, int index)
+{
+ if (!ctx || !ctx->mailbox->emails || (index >= ctx->mailbox->msg_count))
+ return false;
+
+ return !ctx->pattern || ctx->mailbox->emails[index]->limited;
+}
+
+/**
+ * message_is_tagged - Is a message in the index tagged (and within limit)
+ * @param ctx Open mailbox
+ * @param index Message ID (index into `ctx->emails[]`
+ * @retval true The message is both tagged and within limit
+ *
+ * If a limit is in effect, the message must be visible within it.
+ */
+bool message_is_tagged(struct Context *ctx, int index)
+{
+ return message_is_visible(ctx, index) && ctx->mailbox->emails[index]->tagged;
+}
void ctx_update(struct Context *ctx);
void ctx_update_tables(struct Context *ctx, bool committing);
+bool message_is_tagged(struct Context *ctx, int index);
+bool message_is_visible(struct Context *ctx, int index);
+
#endif /* MUTT_CONTEXT_H */
}
return w;
}
-
-/**
- * message_is_visible - Is a message in the index within limit
- * @param ctx Open mailbox
- * @param index Message ID (index into `ctx->emails[]`
- * @retval true The message is within limit
- *
- * If no limit is in effect, all the messages are visible.
- */
-bool message_is_visible(struct Context *ctx, int index)
-{
- if (!ctx || !ctx->mailbox->emails || (index >= ctx->mailbox->msg_count))
- return false;
-
- return !ctx->pattern || ctx->mailbox->emails[index]->limited;
-}
-
-/**
- * message_is_tagged - Is a message in the index tagged (and within limit)
- * @param ctx Open mailbox
- * @param index Message ID (index into `ctx->emails[]`
- * @retval true The message is both tagged and within limit
- *
- * If a limit is in effect, the message must be visible within it.
- */
-bool message_is_tagged(struct Context *ctx, int index)
-{
- return message_is_visible(ctx, index) && ctx->mailbox->emails[index]->tagged;
-}
#define FMT_CENTER 0
#define FMT_RIGHT 1
-bool message_is_tagged(struct Context *ctx, int index);
-bool message_is_visible(struct Context *ctx, int index);
int mutt_addwch(wchar_t wc);
int mutt_any_key_to_continue(const char *s);
int mutt_do_pager(const char *banner, const char *tempfile, int do_color, struct Pager *info);