From b0c58fbf4d9b156b4ff4d9c3372db4c7e9cde43b Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Thu, 17 Dec 2009 14:25:45 +0300 Subject: [PATCH] Ticket #1877 (edit scroll down fix) fixed edit_move_updown: cursor held, text scrolled up. Signed-off-by: Ilia Maslakov --- edit/edit.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/edit/edit.c b/edit/edit.c index 7c2b8e715..078f64b6d 100644 --- a/edit/edit.c +++ b/edit/edit.c @@ -2139,9 +2139,12 @@ edit_move_updown (WEdit * edit, unsigned long i, int scroll, gboolean direction) if (i > 1) edit->force |= REDRAW_PAGE; - if (scroll) - edit_scroll_upward (edit, i); - + if (scroll) { + if (direction) + edit_scroll_upward (edit, i); + else + edit_scroll_downward (edit, i); + } p = edit_bol (edit, edit->curs1); p = (direction)