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; let sgr;
if(item.focused && self.hasFocusItems()) { if(item.focused && self.hasFocusItems()) {
const focusItem = self.focusItems[index]; const focusItem = self.focusItems[index];
text = strUtil.stylizeString( text = focusItem ? focusItem.text : item.text;
focusItem ? focusItem.text : item.text,
self.focusTextStyle
);
sgr = ''; sgr = '';
} else { } else {
text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle); text = strUtil.stylizeString(item.text, item.focused ? self.focusTextStyle : self.textStyle);