* view.c (view_moveto_top): Simplified the code.

This commit is contained in:
Roland Illig 2005-08-22 19:19:51 +00:00
parent de058c5488
commit 55da46b128
2 changed files with 3 additions and 7 deletions

View File

@ -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 <roland.illig@gmx.de>

View File

@ -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);
}