Added some white-space for better readability. The coordinates of the

status line are computed like the other ones (was implicit before).
This commit is contained in:
Roland Illig 2005-08-16 08:47:15 +00:00
parent 9758c34a82
commit 0deeec756e

View File

@ -307,22 +307,31 @@ view_compute_areas (WView *view)
/* Compute the heights of the areas */
rest = view_area.height;
height = dimen_min(rest, 1);
view->status_area.height = height;
rest -= height;
height = dimen_min(rest, (ruler == RULER_NONE || view->hex_mode) ? 0 : 2);
view->ruler_area.height = height;
rest -= height;
view->data_area.height = rest;
/* Compute the position of the areas */
y = view->status_area.top + view->status_area.height;
y = view_area.top;
view->status_area.top = y;
y += view->status_area.height;
if (ruler == RULER_TOP) {
view->ruler_area.top = y;
y += view->ruler_area.height;
}
view->data_area.top = y;
y += view->data_area.height;
if (ruler == RULER_BOTTOM) {
view->ruler_area.top = y;
y += view->ruler_area.height;