]> granicus.if.org Git - neomutt/commit
color: call use_default_colors() in a single location 702/head
authorFabrice Bellet <fabrice@bellet.info>
Fri, 4 Aug 2017 19:16:53 +0000 (21:16 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 9 Aug 2017 12:12:23 +0000 (13:12 +0100)
commita7102c721893d6a6fc33a8e9590f99c450e9fe9e
tree1a29a3f806faa5fcf938b94a84dfb90a1b3baa5d
parente154a97cfd3f67fb12fccf46b5471958fc85d702
color: call use_default_colors() in a single location

we call use_default_colors() when parsing colors in rc files only, and
unconditionally when defining the color of the tree element, because the
foreground color of the tree element may be combined dynamically with
the default background color of another element, not explicitely defined
in an rc file. This patch fixes a bug visible with some versions of the
ncurses library: use_default_colors() was used too late, and generated
color leakage effects. (#689)
color.c