mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Return inverse colors correctly
This probably wasn't causing a bug since the opposite values were being returned, it was wrong and made the code confusing though.
This commit is contained in:
@@ -244,7 +244,7 @@ export class WebglCharAtlas implements IDisposable {
|
||||
case Attributes.CM_DEFAULT:
|
||||
default:
|
||||
if (inverse) {
|
||||
this._config.colors.foreground.rgba;
|
||||
return this._config.colors.foreground.rgba;
|
||||
}
|
||||
return this._config.colors.background.rgba;
|
||||
}
|
||||
@@ -263,7 +263,7 @@ export class WebglCharAtlas implements IDisposable {
|
||||
case Attributes.CM_DEFAULT:
|
||||
default:
|
||||
if (inverse) {
|
||||
this._config.colors.background.rgba;
|
||||
return this._config.colors.background.rgba;
|
||||
}
|
||||
return this._config.colors.foreground.rgba;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user