apply selected item prefix to menu before clearing the line
if selected item prefix turned on a color or other format flag it should be appended to the whole line, not only the part that is going to be drawn using item displayer.
This commit is contained in:
@@ -743,9 +743,9 @@ template <typename T> void NCurses::Menu<T>::Refresh()
|
|||||||
Reverse(1);
|
Reverse(1);
|
||||||
*this << itsHighlightColor;
|
*this << itsHighlightColor;
|
||||||
}
|
}
|
||||||
mvwhline(itsWindow, line, 0, 32, itsWidth);
|
|
||||||
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedPrefix)
|
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedPrefix)
|
||||||
*this << *itsSelectedPrefix;
|
*this << *itsSelectedPrefix;
|
||||||
|
mvwhline(itsWindow, line, 0, 32, itsWidth);
|
||||||
if (itsItemDisplayer)
|
if (itsItemDisplayer)
|
||||||
itsItemDisplayer((*itsOptionsPtr)[i]->Item, itsItemDisplayerUserdata, this);
|
itsItemDisplayer((*itsOptionsPtr)[i]->Item, itsItemDisplayerUserdata, this);
|
||||||
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedSuffix)
|
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedSuffix)
|
||||||
|
|||||||
Reference in New Issue
Block a user