mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Forced update listing format after swap
...because of possible changed sizes. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
2a98492e77
commit
2c994461a6
@ -1190,6 +1190,12 @@ swap_panels (void)
|
||||
tmp_type = panels[0].type;
|
||||
panels[0].type = panels[1].type;
|
||||
panels[1].type = tmp_type;
|
||||
|
||||
/* force update formats because of possible changed sizes */
|
||||
if (panels[0].type == view_listing)
|
||||
set_panel_formats ((WPanel *) panels[0].widget);
|
||||
if (panels[1].type == view_listing)
|
||||
set_panel_formats ((WPanel *) panels[1].widget);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user