summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorVoylin <0voylin0@gmail.com>2022-07-01 04:33:59 +0900
committerVoylin <0voylin0@gmail.com>2022-07-01 04:34:19 +0900
commitcebdfd1bbd060bd77a9875ebfa5f8cebb6e2d7c0 (patch)
treed3d34e3af47027da48de7b317db5dce2f32ee3bf /core
parent20d4c660667e6515e7a623b6eb9fe876c55ddad6 (diff)
Fixing Print_rich which only displays correctly in terminal
There was an issue that the type was not passed through correctly. These couple of lines fix this issue and make print_rich work as expected.
Diffstat (limited to 'core')
-rw-r--r--core/debugger/remote_debugger.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/debugger/remote_debugger.cpp b/core/debugger/remote_debugger.cpp
index 508a71ece9..c73e2eb3fb 100644
--- a/core/debugger/remote_debugger.cpp
+++ b/core/debugger/remote_debugger.cpp
@@ -297,6 +297,14 @@ void RemoteDebugger::flush_output() {
}
strings.push_back(output_string.message);
types.push_back(MESSAGE_TYPE_ERROR);
+ } else if (output_string.type == MESSAGE_TYPE_LOG_RICH) {
+ if (!joined_log_strings.is_empty()) {
+ strings.push_back(String("\n").join(joined_log_strings));
+ types.push_back(MESSAGE_TYPE_LOG_RICH);
+ joined_log_strings.clear();
+ }
+ strings.push_back(output_string.message);
+ types.push_back(MESSAGE_TYPE_LOG_RICH);
} else {
joined_log_strings.push_back(output_string.message);
}