Merge pull request #38522 from ThakeeNathees/printing-empty-string-fix

Fix: printing empty string does nothing in editor output pannel
This commit is contained in:
Rémi Verschelde 2020-05-07 18:05:36 +02:00 committed by GitHub
commit 77e19d116e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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