mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
(dirsize_status_update_cb): use local variables instead of type casting.
This commit is contained in:
parent
6a6e4f8c81
commit
448935fa5b
@ -2528,13 +2528,12 @@ dirsize_status_update_cb (status_msg_t * sm)
|
|||||||
if (WIDGET (dsm->count_size)->cols + 6 > wd->cols)
|
if (WIDGET (dsm->count_size)->cols + 6 > wd->cols)
|
||||||
{
|
{
|
||||||
dlg_set_size (sm->dlg, wd->lines, WIDGET (dsm->count_size)->cols + 6);
|
dlg_set_size (sm->dlg, wd->lines, WIDGET (dsm->count_size)->cols + 6);
|
||||||
dirsize_status_locate_buttons ((dirsize_status_msg_t *) sm);
|
dirsize_status_locate_buttons (dsm);
|
||||||
dlg_redraw (sm->dlg);
|
dlg_redraw (sm->dlg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* adjust first label */
|
/* adjust first label */
|
||||||
label_set_text (dsm->dirname,
|
label_set_text (dsm->dirname, str_trunc (vfs_path_as_str (dsm->dirname_vpath), wd->cols - 6));
|
||||||
str_trunc (vfs_path_as_str (dsm->dirname_vpath), WIDGET (sm->dlg)->cols - 6));
|
|
||||||
|
|
||||||
switch (status_msg_common_update (sm))
|
switch (status_msg_common_update (sm))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user