From 55da46b1287f0e304a8c18c346813ae7e8114cb5 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Mon, 22 Aug 2005 19:19:51 +0000 Subject: [PATCH] * view.c (view_moveto_top): Simplified the code. --- src/ChangeLog | 1 + src/view.c | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index ab68ee87b..b34e75cea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -8,6 +8,7 @@ not search progress), calculate the percentage based on dpy_end instead of dpy_start. This avoids a sudden break to 100 % when approaching the end of file. + * view.c (view_moveto_top): Simplified the code. 2005-08-21 Roland Illig diff --git a/src/view.c b/src/view.c index 899a86b71..eafe5cc70 100644 --- a/src/view.c +++ b/src/view.c @@ -1085,13 +1085,8 @@ static void view_moveto_top (WView *view) { view->dpy_start = 0; - if (view->hex_mode) { - view->hex_cursor = 0; - } else if (view->text_wrap_mode) { - /* nothing to do */ - } else { - view->dpy_text_column = 0; - } + view->hex_cursor = 0; + view->dpy_text_column = 0; view_movement_fixups (view, TRUE); }