summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-01-05 10:27:11 +0100
committerGitHub <noreply@github.com>2021-01-05 10:27:11 +0100
commit9cb78a67705cf7e4960d4eccf841f565de33bd82 (patch)
treeba1a9ee48c07d0209a601cee7bc60edd222c15b7
parent0eb1123cf9f46580b8a9c373f88eb13a578b159d (diff)
parenta8dce9c3773e42ff7c434aa55ea8695ee944edbd (diff)
Merge pull request #44909 from dalexeev/editor-log-newline
Fix odd newline in `EditorLog::add_message()`
-rw-r--r--editor/editor_log.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp
index 859292c573..7b94016fb6 100644
--- a/editor/editor_log.cpp
+++ b/editor/editor_log.cpp
@@ -101,8 +101,6 @@ void EditorLog::copy() {
}
void EditorLog::add_message(const String &p_msg, MessageType p_type) {
- log->add_newline();
-
bool restore = p_type != MSG_TYPE_STD;
switch (p_type) {
case MSG_TYPE_STD: {
@@ -128,6 +126,7 @@ void EditorLog::add_message(const String &p_msg, MessageType p_type) {
}
log->add_text(p_msg);
+ log->add_newline();
if (restore) {
log->pop();