Projects STRLCPY neomutt Commits ffa10f19
🤬
  • Do not ignore errors parsing color lines

    This makes sure that an invalid regular expression in a `color` command is caught and reported at parse time. See #3527.
  • Loading...
  • Pietro Cerutti committed with Richard Russon 2 years ago
    ffa10f19
    1 parent c12b9867
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    color/command.c
    skipped 598 lines
    599 599   if (regex_colors_parse_color_list(cid, buf->data, fg, bg, attrs, &rc, err))
    600 600   {
    601 601   color_debug(LL_DEBUG5, "regex_colors_parse_color_list done\n");
    602  - return MUTT_CMD_SUCCESS;
     602 + return rc;
    603 603   // do nothing
    604 604   }
    605 605   else if (quoted_colors_parse_color(cid, fg, bg, attrs, q_level, &rc, err))
    606 606   {
    607 607   color_debug(LL_DEBUG5, "quoted_colors_parse_color done\n");
    608  - return MUTT_CMD_SUCCESS;
     608 + return rc;
    609 609   // do nothing
    610 610   }
    611 611   else if ((cid == MT_COLOR_STATUS) && MoreArgs(s))
    skipped 103 lines
Please wait...
Page is in error, reload to recover