summaryrefslogtreecommitdiffstats
path: root/curs_main.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2019-01-04 18:45:01 -0800
committerKevin McCarthy <kevin@8t8.us>2019-01-04 19:50:16 -0800
commitefa3afb539b9672ebd6e64cb0c16b98c5f6b8a60 (patch)
tree8fd166307801d97c801d6a2e75f255d6b0ba0f48 /curs_main.c
parent248c2ee8ed7c0ff333ae076041107210c5acd641 (diff)
Clean up formatting.
Add spaces after if, else, while, for, switch. Unify the brace placement style. The vast majority of the code uses Allman style so convert the relatively few K&R braces over.
Diffstat (limited to 'curs_main.c')
-rw-r--r--curs_main.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/curs_main.c b/curs_main.c
index 185afbfe..d3176f3d 100644
--- a/curs_main.c
+++ b/curs_main.c
@@ -627,7 +627,8 @@ int mutt_index_menu (void)
menu->custom_menu_redraw = index_menu_redraw;
mutt_push_current_menu (menu);
- if (!attach_msg) {
+ if (!attach_msg)
+ {
mutt_buffy_check(MUTT_BUFFY_CHECK_FORCE); /* force the buffy check after we
enter the folder */
}
@@ -699,7 +700,8 @@ int mutt_index_menu (void)
menu_status_line(cmd, sizeof(cmd), menu, NONULL(NewMailCmd));
mutt_system(cmd);
}
- } else if (check == MUTT_FLAGS)
+ }
+ else if (check == MUTT_FLAGS)
mutt_message _("Mailbox was externally modified.");
/* avoid the message being overwritten by buffy */
@@ -2211,14 +2213,16 @@ int mutt_index_menu (void)
CHECK_MSGCOUNT;
CHECK_READONLY;
rc = mutt_label_message(tag ? NULL : CURHDR);
- if (rc > 0) {
+ if (rc > 0)
+ {
Context->changed = 1;
menu->redraw = REDRAW_FULL;
/* L10N: This is displayed when the x-label on one or more
* messages is edited. */
mutt_message (_("%d labels changed."), rc);
}
- else {
+ else
+ {
/* L10N: This is displayed when editing an x-label, but no messages
* were updated. Possibly due to canceling at the prompt or if the new
* label is the same as the old label. */