From 5640cad1e1df4634d204e8a16ddf7c4ba34b22d0 Mon Sep 17 00:00:00 2001 From: Thakee Nathees Date: Thu, 7 May 2020 05:56:29 +0530 Subject: Fix: printing empty string does nothing in editor output pannel Fix: #38490 --- core/debugger/remote_debugger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/debugger') diff --git a/core/debugger/remote_debugger.cpp b/core/debugger/remote_debugger.cpp index fd109c62b6..95babc1784 100644 --- a/core/debugger/remote_debugger.cpp +++ b/core/debugger/remote_debugger.cpp @@ -466,7 +466,7 @@ void RemoteDebugger::_print_handler(void *p_this, const String &p_string, bool p String s = p_string; int allowed_chars = MIN(MAX(rd->max_chars_per_second - rd->char_count, 0), s.length()); - if (allowed_chars == 0) + if (allowed_chars == 0 && s.length() > 0) return; if (allowed_chars < s.length()) { -- cgit v1.2.3