summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/screen.c b/mbbsd/screen.c
index 9eabb276..1aa10f6b 100644
--- a/mbbsd/screen.c
+++ b/mbbsd/screen.c
@@ -44,7 +44,7 @@ static inline
screenline_t* GetCurrentLine(){
register int i = cur_ln + roll;
if(i >= scr_lns)
- i -= scr_lns;
+ i %= scr_lns;
return &big_picture[i];
}