From 6cbe574d4e2bcbd0d0ff4a2a4769ffd475683747 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Tue, 29 Aug 2017 19:55:20 -0600 Subject: [PATCH] Put back wrapping for non-ANSI descriptions in file browser --- mods/file_area_list.js | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/mods/file_area_list.js b/mods/file_area_list.js index 2dea2dac..4717715b 100644 --- a/mods/file_area_list.js +++ b/mods/file_area_list.js @@ -376,18 +376,23 @@ exports.getModule = class FileAreaList extends MenuModule { if(_.isString(self.currentFileEntry.desc)) { const descView = self.viewControllers.browse.getView(MciViewIds.browse.desc); if(descView) { - descView.setAnsi( - self.currentFileEntry.desc, - { - prepped : false, - forceLineTerm : true - }, - () => { - self.updateQueueIndicator(); - self.populateCustomLabels('browse', MciViewIds.browse.customRangeStart); - return callback(null); - } - ); + if(isAnsi(self.currentFileEntry.desc)) { + descView.setAnsi( + self.currentFileEntry.desc, + { + prepped : false, + forceLineTerm : true + }, + () => { + self.updateQueueIndicator(); + self.populateCustomLabels('browse', MciViewIds.browse.customRangeStart); + return callback(null); + } + ); + } else { + descView.setText(self.currentFileEntry.desc); + return callback(null); + } } } else { self.updateQueueIndicator();