Show More
@@ -381,13 +381,13 b' def templatelabel(context, mapping, args' | |||||
381 | def uisetup(ui): |
|
381 | def uisetup(ui): | |
382 | if ui.plain(): |
|
382 | if ui.plain(): | |
383 | return |
|
383 | return | |
|
384 | if not issubclass(ui.__class__, colorui): | |||
|
385 | colorui.__bases__ = (ui.__class__,) | |||
|
386 | ui.__class__ = colorui | |||
384 | def colorcmd(orig, ui_, opts, cmd, cmdfunc): |
|
387 | def colorcmd(orig, ui_, opts, cmd, cmdfunc): | |
385 | mode = _modesetup(ui_, opts) |
|
388 | mode = _modesetup(ui_, opts) | |
386 | if mode: |
|
389 | if mode: | |
387 | colorui._colormode = mode |
|
390 | colorui._colormode = mode | |
388 | if not issubclass(ui_.__class__, colorui): |
|
|||
389 | colorui.__bases__ = (ui_.__class__,) |
|
|||
390 | ui_.__class__ = colorui |
|
|||
391 | extstyles() |
|
391 | extstyles() | |
392 | configstyles(ui_) |
|
392 | configstyles(ui_) | |
393 | return orig(ui_, opts, cmd, cmdfunc) |
|
393 | return orig(ui_, opts, cmd, cmdfunc) |
General Comments 0
You need to be logged in to leave comments.
Login now