From: nerdopolis Date: Wed, 13 Dec 2023 00:58:33 +0000 (-0500) Subject: ply-terminal-emulator: Don't reject empty lines X-Git-Tag: 23.51.283~3^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0738917dd69f124b80c3ff34b34202434a2ffc3;p=thirdparty%2Fplymouth.git ply-terminal-emulator: Don't reject empty lines --- diff --git a/src/libply-splash-core/ply-terminal-emulator.c b/src/libply-splash-core/ply-terminal-emulator.c index 95058315..d33e8331 100644 --- a/src/libply-splash-core/ply-terminal-emulator.c +++ b/src/libply-splash-core/ply-terminal-emulator.c @@ -1123,13 +1123,6 @@ ply_terminal_emulator_parse_substring (ply_terminal_emulator_t *terminal_emulato terminal_emulator->current_line = terminal_emulator_line; - /* avoid duplicate empty lines, the end of the line implies a newline */ - if (input_length == 1 && input[0] == '\n') { - *unparsed_input = &input[1]; - *number_of_unparsed_bytes = number_of_bytes_to_parse - 1; - return; - } - ply_rich_text_get_mutable_span (terminal_emulator->current_line, &span); maximum_characters = span.offset + span.range;