From 082c61c2c3c3c7c594175f5e79d8e89e7ad58490 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 6 Jul 2022 07:21:08 -0700 Subject: [PATCH] ensure that we reset attributes to defaults when producing escapes refs: https://github.com/wez/wezterm/issues/2223 --- wezterm-gui/src/scripting/guiwin.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/wezterm-gui/src/scripting/guiwin.rs b/wezterm-gui/src/scripting/guiwin.rs index dc00f0f5d..32d7bcf7d 100644 --- a/wezterm-gui/src/scripting/guiwin.rs +++ b/wezterm-gui/src/scripting/guiwin.rs @@ -243,6 +243,7 @@ fn lines_to_escapes(lines: Vec) -> anyhow::Result { attr = a.clone(); } } + changes.push(Change::AllAttributes(CellAttributes::blank())); let mut renderer = new_wezterm_terminfo_renderer(); struct Target {