From a8dce9c3773e42ff7c434aa55ea8695ee944edbd Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Mon, 4 Jan 2021 15:46:30 +0300 Subject: Fix odd newline in `EditorLog::add_message()` --- editor/editor_log.cpp | 3 +-- 1 file changed, 1 insertion(+), 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(); -- cgit v1.2.3