Skip to content

Commit

Permalink
Fix scrolling of messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Dec 7, 2016
1 parent 2945598 commit 5974d6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Themes/GoboLinux016
Original file line number Diff line number Diff line change
Expand Up @@ -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) ))
Expand Down

0 comments on commit 5974d6b

Please sign in to comment.