From c583b62024268858b9c742dc29d0300f894138d3 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 29 Dec 2017 11:55:30 +0000 Subject: [PATCH] add missing {}s --- init.c | 4 ++++ keymap.c | 2 ++ pager.c | 2 ++ query.c | 2 ++ 4 files changed, 10 insertions(+) diff --git a/init.c b/init.c index 14d16fb86..0308d8cf4 100644 --- a/init.c +++ b/init.c @@ -1711,6 +1711,7 @@ static int parse_unalias(struct Buffer *buf, struct Buffer *s, break; } else + { for (tmp = Aliases; tmp; tmp = tmp->next) { if (mutt_str_strcasecmp(buf->data, tmp->name) == 0) @@ -1732,6 +1733,7 @@ static int parse_unalias(struct Buffer *buf, struct Buffer *s, } last = tmp; } + } } while (MoreArgs(s)); return 0; } @@ -2661,6 +2663,7 @@ static int parse_set(struct Buffer *tmp, struct Buffer *s, unsigned long data, mutt_extract_token(tmp, s, 0); if (parse_regex(idx, tmp, err)) + { /* $reply_regexp and $alternates require special treatment */ if (Context && Context->msgcount && (mutt_str_strcmp(MuttVars[idx].name, "reply_regexp") == 0)) @@ -2679,6 +2682,7 @@ static int parse_set(struct Buffer *tmp, struct Buffer *s, unsigned long data, } } } + } } else if (DTYPE(MuttVars[idx].type) == DT_MAGIC) { diff --git a/keymap.c b/keymap.c index 01db3a6b4..2cf66042a 100644 --- a/keymap.c +++ b/keymap.c @@ -494,6 +494,7 @@ int km_dokey(int menu) if (ImapKeepalive >= i) imap_keepalive(); else + { while (ImapKeepalive && ImapKeepalive < i) { timeout(ImapKeepalive * 1000); @@ -508,6 +509,7 @@ int km_dokey(int menu) i -= ImapKeepalive; imap_keepalive(); } + } } #endif diff --git a/pager.c b/pager.c index 1b85d9787..97887a178 100644 --- a/pager.c +++ b/pager.c @@ -1897,12 +1897,14 @@ static void pager_menu_redraw(struct Menu *pager_menu) &rd->max_line, rd->has_types | rd->search_flag | (rd->flags & MUTT_PAGER_NOWRAP), &rd->quote_list, &rd->q_level, &rd->force_redraw, &rd->search_re, rd->pager_window) == 0) + { if (!rd->line_info[i].continuation && ++j == rd->lines) { rd->topline = i; if (!rd->search_flag) break; } + } } #ifdef USE_SIDEBAR diff --git a/query.c b/query.c index a33b04a9e..38ea7ba71 100644 --- a/query.c +++ b/query.c @@ -472,12 +472,14 @@ static void query_menu(char *buf, size_t buflen, struct Query *results, int retb else { for (i = 0; i < menu->max; i++) + { if (QueryTable[i].tagged) { struct Address *a = result_to_addr(QueryTable[i].data); mutt_addr_append(&msg->env->to, a, false); mutt_addr_free(&a); } + } } ci_send_message(0, msg, NULL, Context, NULL); menu->redraw = REDRAW_FULL; -- 2.40.0