From 79e410315c83afbe6dff3199d9c4d630886e0b6f Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Fri, 8 Sep 2017 23:07:11 -0600 Subject: [PATCH] Remove a extra line when quoting --- core/fse.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/fse.js b/core/fse.js index ed9d3b13..2ccc6951 100644 --- a/core/fse.js +++ b/core/fse.js @@ -995,14 +995,14 @@ exports.FullScreenEditorModule = exports.getModule = class FullScreenEditorModul const quoteMsgView = this.viewControllers.quoteBuilder.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) { const bodyMessageView = this.viewControllers.body.getView(1); quoteLines += `${ansi.normal()}${bodyMessageView.getSGRFor('text')}`; } - msgView.addText(`${quoteLines}\n`); + msgView.addText(`${quoteLines}\n\n`); } quoteMsgView.setText('');