We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7c27061 + 5e5b672 commit 3db284bCopy full SHA for 3db284b
neovim/ui/gtk_ui.py
@@ -468,12 +468,14 @@ def _get_pango_attrs(self, attrs):
468
'background': _split_color(bg),
469
}
470
if attrs:
471
+ # make sure that foreground and background are assigned first
472
+ for k in ['foreground', 'background']:
473
+ if k in attrs:
474
+ n[k] = _split_color(attrs[k])
475
for k, v in attrs.items():
- if k in ['foreground', 'background']:
- n[k] = _split_color(v)
- elif k == 'reverse':
- n['foreground'] = _invert_color(*n['foreground'])
476
- n['background'] = _invert_color(*n['background'])
+ if k == 'reverse':
477
+ n['foreground'], n['background'] = \
478
+ n['background'], n['foreground']
479
elif k == 'italic':
480
n['font_style'] = 'italic'
481
elif k == 'bold':
0 commit comments