Put back wrapping for non-ANSI descriptions in file browser

This commit is contained in:
Bryan Ashby 2017-08-29 19:55:20 -06:00
parent af911f8e74
commit 6cbe574d4e
1 changed files with 17 additions and 12 deletions

View File

@ -376,18 +376,23 @@ exports.getModule = class FileAreaList extends MenuModule {
if(_.isString(self.currentFileEntry.desc)) { if(_.isString(self.currentFileEntry.desc)) {
const descView = self.viewControllers.browse.getView(MciViewIds.browse.desc); const descView = self.viewControllers.browse.getView(MciViewIds.browse.desc);
if(descView) { if(descView) {
descView.setAnsi( if(isAnsi(self.currentFileEntry.desc)) {
self.currentFileEntry.desc, descView.setAnsi(
{ self.currentFileEntry.desc,
prepped : false, {
forceLineTerm : true prepped : false,
}, forceLineTerm : true
() => { },
self.updateQueueIndicator(); () => {
self.populateCustomLabels('browse', MciViewIds.browse.customRangeStart); self.updateQueueIndicator();
return callback(null); self.populateCustomLabels('browse', MciViewIds.browse.customRangeStart);
} return callback(null);
); }
);
} else {
descView.setText(self.currentFileEntry.desc);
return callback(null);
}
} }
} else { } else {
self.updateQueueIndicator(); self.updateQueueIndicator();