From 8bf757f466ec7f3536e181873f097f3e211bf9a0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 25 Dec 2021 17:13:01 +0100 Subject: csi: no need to set VT state’s fg/bg to the default ones on SGR reset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- csi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/csi.c b/csi.c index f27f805f..cee133e9 100644 --- a/csi.c +++ b/csi.c @@ -32,8 +32,6 @@ static void sgr_reset(struct terminal *term) { memset(&term->vt.attrs, 0, sizeof(term->vt.attrs)); - term->vt.attrs.fg = term->colors.fg; - term->vt.attrs.bg = term->colors.bg; } static const char * -- cgit v1.3