mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #2854: panel was not refreshed if panel history is called using mouse.
If call panel history using mouse (click on [^] icon on panel top frame) and then select any path from history, panel was not refreshed to show actual file list in the new current directory. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
bcfb8c8f98
commit
e31e41e04a
@ -3625,16 +3625,14 @@ panel_event (Gpm_Event * event, void *data)
|
||||
if (mouse_down && local.x >= w->cols - 4 && local.x <= w->cols - 2)
|
||||
{
|
||||
directory_history_list (panel);
|
||||
/* both panels have been redrawn */
|
||||
return MOU_NORMAL;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
/* "." button show/hide hidden files */
|
||||
if (mouse_down && local.x == w->cols - 5)
|
||||
{
|
||||
midnight_dlg->callback (midnight_dlg, NULL, DLG_ACTION, CK_ShowHidden, NULL);
|
||||
/* both panels have been updated */
|
||||
return MOU_NORMAL;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
/* no other events on 1st line */
|
||||
@ -3708,6 +3706,7 @@ panel_event (Gpm_Event * event, void *data)
|
||||
do_enter (panel);
|
||||
|
||||
finish:
|
||||
if (panel->dirty)
|
||||
send_message (w, WIDGET_DRAW, 0);
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user