mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
Do not modify if we use ansicolors
This commit is contained in:
parent
3545358a4b
commit
5ee9e058ca
1 changed files with 2 additions and 2 deletions
|
@ -452,8 +452,8 @@ class XonshStyle(Style):
|
|||
if 'CONEMUANSI' not in env:
|
||||
# Auto suggest needs to be a darker shade to be distinguishable
|
||||
# from the default color
|
||||
self.styles[Token.AutoSuggestion] = '#444444'
|
||||
self._smap.update(expand_gray_colors_for_cmd_exe(self._smap))
|
||||
if not hasattr(pygments.style, 'ansicolors'):
|
||||
self.styles[Token.AutoSuggestion] = '#444444'
|
||||
if env.get('INTENSIFY_COLORS_ON_WIN', False):
|
||||
has_ansi = hasattr(pygments.style, 'ansicolors')
|
||||
newcolors = intensify_colors_for_cmd_exe(self._smap, ansi=has_ansi)
|
||||
|
|
Loading…
Add table
Reference in a new issue