Merge pull request #44909 from dalexeev/editor-log-newline

Fix odd newline in `EditorLog::add_message()`
This commit is contained in:
Rémi Verschelde 2021-01-05 10:27:11 +01:00 committed by GitHub
commit 9cb78a6770
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();