if Colors struct contains clEnd, remove current color set from stack

previously it just did nothing, which wasn't correct behaviour at all.
master
Andrzej Rybczak 17 years ago
parent f734b43229
commit 84418130fe
  1. 3
      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;

Loading…
Cancel
Save