From 52f3d6c0e5b6712e182cf5ef451a595746e2a856 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 6 Feb 2022 07:29:07 -0700 Subject: [PATCH] gui: clarify code, no functional change --- wezterm-gui/src/termwindow/render.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wezterm-gui/src/termwindow/render.rs b/wezterm-gui/src/termwindow/render.rs index e760519f6..e7991df9a 100644 --- a/wezterm-gui/src/termwindow/render.rs +++ b/wezterm-gui/src/termwindow/render.rs @@ -2165,7 +2165,7 @@ impl super::TermWindow { // and render each of these strips for range in [la, lb, lc, mid, ra, rb, rc] { - if range.start == range.end { + if range.is_empty() { continue; } @@ -2195,6 +2195,8 @@ impl super::TermWindow { }); if glyph_color == bg_color { + // Essentially invisible: don't render it, as anti-aliasing + // can cause a ghostly outline of the invisible glyph to appear. continue; }