mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* view.c (view_display_status): In normal display mode (that is:
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.
This commit is contained in:
parent
21640f491d
commit
de058c5488
@ -4,6 +4,10 @@
|
||||
does not always represent the top-left corner of the screen.
|
||||
Replaced dpy_complete with dpy_end, the offset of the first byte
|
||||
after the displayed region.
|
||||
* view.c (view_display_status): In normal display mode (that is:
|
||||
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.
|
||||
|
||||
2005-08-21 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
@ -1598,7 +1598,7 @@ view_display_status (WView *view)
|
||||
if (width > 26) {
|
||||
view_percent (view, view->hex_mode
|
||||
? view->hex_cursor
|
||||
: view->dpy_start);
|
||||
: view->dpy_end);
|
||||
}
|
||||
}
|
||||
attrset (SELECTED_COLOR);
|
||||
|
Loading…
Reference in New Issue
Block a user