commit | eb5f4460d1dcee0e53197f4d3c4f28768da4b7f8 | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Wed Oct 28 08:27:33 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Wed Oct 28 08:27:33 2009 +0000 |
tree | 09ee0d14294f9350364f8b0f5eac7ffd2cf40da6 | |
parent | 37ffdff5baed2680ac51d694a50e853e5bdfef31 [diff] |
Setting SGR0 when setting the fg and bg has problems if only one of the two is meant to be default, so rewrite the code to move this outside, move setting colours before attributes and generally clean up. Tested by sthen@, fixes problems he was seeing with mutt and should fix some existing problems with (rarely) lost attributes.