diff hgext/color.py @ 31113:268caf97c38f

color: move the dict with terminfo parameters on the ui object This dictionnary is affected by the content of the config, so we should have one for each ui config. We rename the global dict to '_baseterminfoparams' to make the situation clearer.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 25 Feb 2017 15:00:51 +0100
parents 7fec37746417
children f5131d4f512a
line wrap: on
line diff
--- a/hgext/color.py	Sat Feb 25 15:00:44 2017 +0100
+++ b/hgext/color.py	Sat Feb 25 15:00:51 2017 +0100
@@ -212,7 +212,7 @@
         color._styles.clear()
         for effect in color._effects.keys():
             color._styles[effect] = effect
-        if color._terminfo_params:
+        if ui._terminfoparams:
             for k, v in ui.configitems('color'):
                 if k.startswith('color.'):
                     color._styles[k] = k[6:]