Show More
@@ -72,7 +72,7 b' except ImportError:' | |||||
72 | 'white_background': 47, |
|
72 | 'white_background': 47, | |
73 | } |
|
73 | } | |
74 |
|
74 | |||
75 | _styles = { |
|
75 | _defaultstyles = { | |
76 | 'grep.match': 'red bold', |
|
76 | 'grep.match': 'red bold', | |
77 | 'grep.linenumber': 'green', |
|
77 | 'grep.linenumber': 'green', | |
78 | 'grep.rev': 'green', |
|
78 | 'grep.rev': 'green', | |
@@ -129,7 +129,7 b' except ImportError:' | |||||
129 | } |
|
129 | } | |
130 |
|
130 | |||
131 | def loadcolortable(ui, extname, colortable): |
|
131 | def loadcolortable(ui, extname, colortable): | |
132 | _styles.update(colortable) |
|
132 | _defaultstyles.update(colortable) | |
133 |
|
133 | |||
134 | def _terminfosetup(ui, mode): |
|
134 | def _terminfosetup(ui, mode): | |
135 | '''Initialize terminfo data and the terminal if we're in terminfo mode.''' |
|
135 | '''Initialize terminfo data and the terminal if we're in terminfo mode.''' | |
@@ -254,7 +254,7 b' def _modesetup(ui):' | |||||
254 | return None |
|
254 | return None | |
255 |
|
255 | |||
256 | def configstyles(ui): |
|
256 | def configstyles(ui): | |
257 | ui._styles.update(_styles) |
|
257 | ui._styles.update(_defaultstyles) | |
258 | for status, cfgeffects in ui.configitems('color'): |
|
258 | for status, cfgeffects in ui.configitems('color'): | |
259 | if '.' not in status or status.startswith(('color.', 'terminfo.')): |
|
259 | if '.' not in status or status.startswith(('color.', 'terminfo.')): | |
260 | continue |
|
260 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now