##// END OF EJS Templates
color: fix TypeError with auto mode on win32 when colors aren't available (issue2871)...
Brodie Rao -
r14768:55db12e5 stable
parent child Browse files
Show More
@@ -174,9 +174,10 b' def _modesetup(ui, opts):'
174 174 realmode = 'terminfo'
175 175
176 176 if realmode == 'win32':
177 if not w32effects and mode == 'win32':
178 # only warn if color.mode is explicitly set to win32
179 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
177 if not w32effects:
178 if mode == 'win32':
179 # only warn if color.mode is explicitly set to win32
180 ui.warn(_('warning: failed to set color mode to %s\n') % mode)
180 181 return None
181 182 _effects.update(w32effects)
182 183 elif realmode == 'ansi':
General Comments 0
You need to be logged in to leave comments. Login now