Skip to content

Commit

Permalink
fix inversion bg and fg
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed May 26, 2024
1 parent 929bfcd commit ab4ade8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontends/cross-winit/src/screen/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl State {
fn compute_fg_color(&self, square: &Square) -> ColorArray {
let mut color = match square.fg {
AnsiColor::Named(ansi_name) => match (ansi_name, square.flags) {
(NamedColor::Background, _) => self.dynamic_background.0,
(NamedColor::Background, _) => self.named_colors.background.0,
(NamedColor::Cursor, _) => self.named_colors.cursor,

(NamedColor::Black, Flags::DIM) => self.named_colors.dim_black,
Expand Down Expand Up @@ -380,7 +380,7 @@ impl State {
fn compute_bg_color(&self, square: &Square) -> ColorArray {
let mut color = match square.bg {
AnsiColor::Named(ansi_name) => match (ansi_name, square.flags) {
(NamedColor::Background, _) => self.named_colors.background.0,
(NamedColor::Background, _) => self.dynamic_background.0,
(NamedColor::Cursor, _) => self.named_colors.cursor,

(NamedColor::Black, Flags::DIM) => self.named_colors.dim_black,
Expand Down

0 comments on commit ab4ade8

Please sign in to comment.