From 87cf14a4b79146240b74ab473faf542b72e5e939 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 26 Sep 2019 20:55:30 +0200 Subject: [PATCH] Fix selection not inverting terminal background Fixes a regression introduced in 9a0555bbba30c264f617ec9260ca00e0eab70870 where the terminal background would not get inverted when selected. --- alacritty_terminal/src/term/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/alacritty_terminal/src/term/mod.rs b/alacritty_terminal/src/term/mod.rs index 258e4ebd..17416bad 100644 --- a/alacritty_terminal/src/term/mod.rs +++ b/alacritty_terminal/src/term/mod.rs @@ -289,6 +289,8 @@ impl RenderableCell { // Invert cell fg and bg colors mem::swap(&mut fg_rgb, &mut bg_rgb); } + + bg_alpha = 1.0; } // Override selection text with config colors