From cd79d5cf25aa041adf6b2862835320df764322d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 13 Sep 2017 23:32:18 +0200 Subject: [PATCH] fix #172 --- user/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/screen.c b/user/screen.c index 95b70d1..8a3ed35 100644 --- a/user/screen.c +++ b/user/screen.c @@ -1684,10 +1684,10 @@ screenSerializeToBuffer(char *buffer, size_t buf_len, void **data) if (repCnt == 0) { // No repeat - bool changeAttrs = cell0->attrs != ss->lastAttrs; + bool changeAttrs = cell0->attrs != ss->lastAttrs || i==0; bool changeFg = cell0->fg != ss->lastFg; bool changeBg = cell0->bg != ss->lastBg; - bool changeColors = changeFg && changeBg; + bool changeColors = (changeFg && changeBg) || i==0; Color fg, bg; // Reverse fg and bg if we're in global reverse mode