From 92555866ee51b715b3dfeb10ae5296dcf6196957 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sun, 15 Jun 2014 22:49:13 +0200 Subject: [PATCH] adjust scroll with direction never noticed the bug but might occur --- src/bin/termio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index dc8c4731..9f2eb442 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -3986,7 +3986,7 @@ termio_scroll(Evas_Object *obj, int direction, int start_y, int end_y) (sd->scroll > 0)) { // adjust scroll position for added scrollback - sd->scroll++; + sd->scroll -= direction; if (sd->scroll > sd->pty->backscroll_num) sd->scroll = sd->pty->backscroll_num; }