Remove a extra line when quoting

This commit is contained in:
Bryan Ashby 2017-09-08 23:07:11 -06:00
parent 3f942871ae
commit 79e410315c
1 changed files with 3 additions and 3 deletions

View File

@ -995,14 +995,14 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul
const quoteMsgView = this.viewControllers.quoteBuilder.getView(1); const quoteMsgView = this.viewControllers.quoteBuilder.getView(1);
const msgView = this.viewControllers.body.getView(1); const msgView = this.viewControllers.body.getView(1);
let quoteLines = quoteMsgView.getData(); let quoteLines = quoteMsgView.getData().trim();
if(quoteLines.trim().length > 0) { if(quoteLines.length > 0) {
if(this.replyIsAnsi) { if(this.replyIsAnsi) {
const bodyMessageView = this.viewControllers.body.getView(1); const bodyMessageView = this.viewControllers.body.getView(1);
quoteLines += `${ansi.normal()}${bodyMessageView.getSGRFor('text')}`; quoteLines += `${ansi.normal()}${bodyMessageView.getSGRFor('text')}`;
} }
msgView.addText(`${quoteLines}\n`); msgView.addText(`${quoteLines}\n\n`);
} }
quoteMsgView.setText(''); quoteMsgView.setText('');