mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(listbox_callback): reduce variable scope.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
d786d88299
commit
3945f5fdf6
@ -449,7 +449,6 @@ static cb_ret_t
|
||||
listbox_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data)
|
||||
{
|
||||
WListbox *l = LISTBOX (w);
|
||||
cb_ret_t ret_code;
|
||||
|
||||
switch (msg)
|
||||
{
|
||||
@ -467,10 +466,14 @@ listbox_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void
|
||||
}
|
||||
|
||||
case MSG_KEY:
|
||||
{
|
||||
cb_ret_t ret_code;
|
||||
|
||||
ret_code = listbox_key (l, parm);
|
||||
if (ret_code != MSG_NOT_HANDLED)
|
||||
listbox_on_change (l);
|
||||
return ret_code;
|
||||
}
|
||||
|
||||
case MSG_ACTION:
|
||||
return listbox_execute_cmd (l, parm);
|
||||
|
Loading…
Reference in New Issue
Block a user