Show More
@@ -159,10 +159,9 b' def _terminfosetup(ui, mode):' | |||
|
159 | 159 | "ECMA-48 color\n")) |
|
160 | 160 | _terminfo_params = {} |
|
161 | 161 | |
|
162 |
def _modesetup(ui, opt |
|
|
162 | def _modesetup(ui, coloropt): | |
|
163 | 163 | global _terminfo_params |
|
164 | 164 | |
|
165 | coloropt = opts['color'] | |
|
166 | 165 | auto = coloropt == 'auto' |
|
167 | 166 | always = not auto and util.parsebool(coloropt) |
|
168 | 167 | if not always and not auto: |
@@ -405,7 +404,7 b' def uisetup(ui):' | |||
|
405 | 404 | colorui.__bases__ = (ui.__class__,) |
|
406 | 405 | ui.__class__ = colorui |
|
407 | 406 | def colorcmd(orig, ui_, opts, cmd, cmdfunc): |
|
408 | mode = _modesetup(ui_, opts) | |
|
407 | mode = _modesetup(ui_, opts['color']) | |
|
409 | 408 | colorui._colormode = mode |
|
410 | 409 | if mode: |
|
411 | 410 | extstyles() |
General Comments 0
You need to be logged in to leave comments.
Login now