if Colors struct contains clEnd, remove current color set from stack
previously it just did nothing, which wasn't correct behaviour at all.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user