(listbox_callback): reduce variable scope.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2020-04-09 08:37:45 +03:00
parent d786d88299
commit 3945f5fdf6

View File

@ -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:
ret_code = listbox_key (l, parm);
if (ret_code != MSG_NOT_HANDLED)
listbox_on_change (l);
return ret_code;
{
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);