From 2a5b83296bf7d90c17089049306b13b550c462a1 Mon Sep 17 00:00:00 2001 From: Arin Alexander Date: Mon, 9 Jul 2018 22:52:47 +0300 Subject: [PATCH] Script completion has been fixed --- limereport/scripteditor/lrcodeeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/limereport/scripteditor/lrcodeeditor.cpp b/limereport/scripteditor/lrcodeeditor.cpp index 0b7af1a..97deeb5 100644 --- a/limereport/scripteditor/lrcodeeditor.cpp +++ b/limereport/scripteditor/lrcodeeditor.cpp @@ -170,7 +170,7 @@ QString CodeEditor::textUnderCursor() const currentText = blockText.at(i-1) + currentText; else break; } - return currentText; + return currentText.trimmed(); } bool CodeEditor::matchLeftParenthesis(QTextBlock currentBlock, QChar parenthesisType, int i, int numLeftParentheses)