| File src/ui/ui.c changed (mode: 100644) (index 4ec4d28e3..427391e7f) |
| ... |
... |
update_statusbar_layout(void) |
| 1540 |
1540 |
getmaxyx(stdscr, screen_y, screen_x); |
getmaxyx(stdscr, screen_y, screen_x); |
| 1541 |
1541 |
|
|
| 1542 |
1542 |
int max_ruler_width = screen_x - INPUT_WIN_WIDTH - 1; |
int max_ruler_width = screen_x - INPUT_WIN_WIDTH - 1; |
| 1543 |
|
int ruler_width = MIN(get_ruler_width(), max_ruler_width); |
|
|
1543 |
|
int ruler_width = |
|
1544 |
|
MIN(MAX(POS_WIN_MIN_WIDTH, get_ruler_width()), max_ruler_width); |
| 1544 |
1545 |
/* The minimal start position is 1, not 0, because otherwise the ruler is |
/* The minimal start position is 1, not 0, because otherwise the ruler is |
| 1545 |
1546 |
* hidden by a single-character status bar window. */ |
* hidden by a single-character status bar window. */ |
| 1546 |
1547 |
int fields_pos = screen_x - (INPUT_WIN_WIDTH + ruler_width); |
int fields_pos = screen_x - (INPUT_WIN_WIDTH + ruler_width); |
| |
| ... |
... |
get_fileview_ruler_width(view_t *view) |
| 1601 |
1602 |
|
|
| 1602 |
1603 |
view->list_pos = list_pos; |
view->list_pos = list_pos; |
| 1603 |
1604 |
|
|
| 1604 |
|
return MAX(POS_WIN_MIN_WIDTH, len); |
|
|
1605 |
|
return len; |
| 1605 |
1606 |
} |
} |
| 1606 |
1607 |
|
|
| 1607 |
1608 |
/* Expands view macros to be displayed on the ruler line according to the format |
/* Expands view macros to be displayed on the ruler line according to the format |