Crash with color differences in same variable #164

This commit is contained in:
Bryan Ashby 2018-03-22 20:48:31 -06:00
parent e31decfe8f
commit 7bd980c886
1 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,7 @@ const messageArea = require('./message_area.js');
const displayThemeArt = require('./theme.js').displayThemeArt; const displayThemeArt = require('./theme.js').displayThemeArt;
const resetScreen = require('./ansi_term.js').resetScreen; const resetScreen = require('./ansi_term.js').resetScreen;
const stringFormat = require('./string_format.js'); const stringFormat = require('./string_format.js');
const Errors = require('./enig_error.js').Errors;
// deps // deps
const async = require('async'); const async = require('async');
@ -139,6 +140,9 @@ exports.getModule = class MessageAreaListModule extends MenuModule {
const focusListFormat = self.menuConfig.config.focusListFormat || listFormat; const focusListFormat = self.menuConfig.config.focusListFormat || listFormat;
const areaListView = vc.getView(MciViewIds.AreaList); const areaListView = vc.getView(MciViewIds.AreaList);
if(!areaListView) {
return callback(Errors.MissingMci('A MenuView compatible MCI code is required'));
}
let i = 1; let i = 1;
areaListView.setItems(_.map(self.messageAreas, v => { areaListView.setItems(_.map(self.messageAreas, v => {
return stringFormat(listFormat, { return stringFormat(listFormat, {