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:
1 parent
ead5255df1
commit
ec18a34513
1 file changed
+1
-1
+1
-1
@@ -743,9 +743,9 @@ template <typename T> void NCurses::Menu<T>::Refresh()
|
||||
Reverse(1);
|
||||
*this << itsHighlightColor;
|
||||
}
|
||||
mvwhline(itsWindow, line, 0, 32, itsWidth);
|
||||
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedPrefix)
|
||||
*this << *itsSelectedPrefix;
|
||||
mvwhline(itsWindow, line, 0, 32, itsWidth);
|
||||
if (itsItemDisplayer)
|
||||
itsItemDisplayer((*itsOptionsPtr)[i]->Item, itsItemDisplayerUserdata, this);
|
||||
if ((*itsOptionsPtr)[i]->isSelected && itsSelectedSuffix)
|
||||
|
||||
Reference in new issue
Block a user