From 5974d6bbb66415ae81437a00c7fcd2fd4e5dbcfb Mon Sep 17 00:00:00 2001 From: Hisham Date: Wed, 7 Dec 2016 03:00:50 -0200 Subject: [PATCH] Fix scrolling of messages --- Themes/GoboLinux016 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Themes/GoboLinux016 b/Themes/GoboLinux016 index 967a357f..3be26d2b 100644 --- a/Themes/GoboLinux016 +++ b/Themes/GoboLinux016 @@ -186,12 +186,12 @@ ThemeBefore() { msg[$id]="$*" local nmsg nmsg="${#msg[@]}" - (( count = (nmsg < STATUS_SIZE) ? nmsg : STATUS_SIZE )) - (( start = nmsg - count )) + (( nshow = (nmsg < STATUS_SIZE) ? nmsg : STATUS_SIZE )) + (( start = nmsg - nshow )) local y local idx - (( y = STATUS_START + STATUS_SIZE - count )) - for (( i = $start; i < $count; i++ )) + (( y = STATUS_START + STATUS_SIZE - nshow )) + for (( i = start; i < start + nshow ; i++ )) do GotoXY 1 $y (( idx = y - (STATUS_START + STATUS_SIZE) ))