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)
|
Window &Window::operator<<(Colors colors)
|
||||||
{
|
{
|
||||||
if (colors.fg == clEnd || colors.bg == clEnd)
|
if (colors.fg == clEnd || colors.bg == clEnd)
|
||||||
|
{
|
||||||
|
*this << clEnd;
|
||||||
return *this;
|
return *this;
|
||||||
|
}
|
||||||
itsColors.push(colors);
|
itsColors.push(colors);
|
||||||
SetColor(colors.fg, colors.bg);
|
SetColor(colors.fg, colors.bg);
|
||||||
return *this;
|
return *this;
|
||||||
|
|||||||
Reference in New Issue
Block a user