From a710ab5591e4bb7f845d6b36f7e8e6a039b77ed6 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Sat, 25 Apr 2026 13:04:45 -0700 Subject: [PATCH] fix: Remove redundant condition in scroll.c --- libx52util/scroll.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libx52util/scroll.c b/libx52util/scroll.c index a45ba68..4f6c438 100644 --- a/libx52util/scroll.c +++ b/libx52util/scroll.c @@ -46,10 +46,7 @@ static uint8_t tape_byte(const struct libx52util_scroll *st, size_t index) if (index < st->text_len) { return st->text[index]; } - index -= st->text_len; - if (index < st->suffix) { - return (uint8_t)' '; - } + /* Remaining tape cells: suffix-width trailing pad (spaces). */ return (uint8_t)' '; }