mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-04 01:14:17 +03:00
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:
parent
9758c34a82
commit
0deeec756e
11
src/view.c
11
src/view.c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user