From 9ef171f73303c78758b3f3b64133a38cd31decad Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 27 Mar 2021 13:22:45 +0100 Subject: [PATCH] ply-text-display: Only skip clearing the screen when tracing to a terminal When the user has chosen to enable tracing to a file, so that the terminal output stays the same as when not tracing, ply_text_display_clear_screen () should still clear the screen, as it does when not tracing. Signed-off-by: Hans de Goede --- src/libply-splash-core/ply-text-display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libply-splash-core/ply-text-display.c b/src/libply-splash-core/ply-text-display.c index 7bf6e06d..fc41645a 100644 --- a/src/libply-splash-core/ply-text-display.c +++ b/src/libply-splash-core/ply-text-display.c @@ -150,7 +150,7 @@ ply_text_display_set_cursor_position (ply_text_display_t *display, void ply_text_display_clear_screen (ply_text_display_t *display) { - if (ply_is_tracing ()) + if (ply_is_tracing_to_terminal ()) return; ply_terminal_write (display->terminal, -- 2.47.3