Fix drawing when focus items set - we should not attempt to stylize!

This commit is contained in:
Bryan Ashby 2018-01-20 19:30:10 -07:00
parent 5caf7a9fce
commit bc55317a4b
1 changed files with 1 additions and 4 deletions

View File

@ -66,10 +66,7 @@ function VerticalMenuView(options) {
let sgr;
if(item.focused && self.hasFocusItems()) {
const focusItem = self.focusItems[index];
text = strUtil.stylizeString(
focusItem ? focusItem.text : item.text,
self.focusTextStyle
);
text = focusItem ? focusItem.text : item.text;
sgr = '';
} else {
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);