#3689: allow_ansi only colors first char of word
--------------------------+------------------------------
Reporter: richardp345 | Owner: mutt-dev
Type: defect | Status: closed
Priority: minor | Milestone:
Component: display | Version: 1.5.22
Resolution: fixed | Keywords: allow_ansi color
--------------------------+------------------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"6e8050965f1ad33d4a5de036aab7d8220760edd6"
7184:6e8050965f1a]:
{{{
#!CommitTicketReference repository=""
revision="6e8050965f1ad33d4a5de036aab7d8220760edd6"
Fix ansi escape sequences with both reset and color parameters. (closes
#3689)
The initial 0 "reset/normal" was setting attr = ANSI_OFF, which was
subsequently being or'ed with ANSI_COLOR.
The color resolution was then checking for the ANSI_OFF bit and
turning all coloring off, even though ANSI_COLOR was also set.
Change the color resolution to check for "attr == ANSI_OFF" instead, so
the color isn't reset unless the reset occurs last in the sequence.
}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3689#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent