From d3816bf8ad1fcfed2a32d23216a55850ee4325b5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 18 Jul 2015 13:02:06 +0300 Subject: [PATCH] Fix scrolling backwards on TTY frames under scroll-conservatively * src/xdisp.c (move_it_vertically_backward): Fix off-by-one error in moving backwards on TTY frames. (Bug#21080) --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 5bef44c6e51..16a7a64c89b 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -9428,7 +9428,7 @@ move_it_vertically_backward (struct it *it, int dy) treating terminal frames specially here. */ if (!FRAME_WINDOW_P (it->f)) - move_it_vertically (it, target_y - (it->current_y + line_height)); + move_it_vertically (it, target_y - it->current_y); else { do -- 2.39.5