]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
ply-terminal-emulator: Don't reject empty lines
authornerdopolis <bluescreen_avenger@verizon.net>
Wed, 13 Dec 2023 00:58:33 +0000 (19:58 -0500)
committern3rdopolis <bluescreenavenger@gmail.com>
Sat, 16 Dec 2023 13:25:01 +0000 (13:25 +0000)
src/libply-splash-core/ply-terminal-emulator.c

index 95058315ec8c3f925b02ae5f15dddbd829cf6b4e..d33e83318c74870854e75a6366d60d74739bb947 100644 (file)
@@ -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;