* 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:
Roland Illig 2005-08-22 18:36:51 +00:00
parent 21640f491d
commit de058c5488
2 changed files with 5 additions and 1 deletions

View File

@ -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>

View File

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