mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* view.c (view_moveto_top): Simplified the code.
This commit is contained in:
parent
de058c5488
commit
55da46b128
@ -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>
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user