From 84418130fe9604e3b2bf962c450b1df73c686f5b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 16 Sep 2009 03:28:29 +0000 Subject: [PATCH] if Colors struct contains clEnd, remove current color set from stack previously it just did nothing, which wasn't correct behaviour at all. --- src/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index 28b37b19..b59bbaa0 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -696,7 +696,10 @@ void Window::Scroll(Where where) Window &Window::operator<<(Colors colors) { if (colors.fg == clEnd || colors.bg == clEnd) + { + *this << clEnd; return *this; + } itsColors.push(colors); SetColor(colors.fg, colors.bg); return *this;