mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable.
This commit is contained in:
parent
9e527a5781
commit
91f4a75562
@ -1,5 +1,7 @@
|
||||
2002-09-24 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editmenu.c (edit_drop_menu_cmd): Don't use edit_dlg variable.
|
||||
|
||||
* edit.c: Remove all references to CR_LF_TRANSLATION.
|
||||
* editcmd.c: Likewise.
|
||||
|
||||
|
@ -300,16 +300,22 @@ void edit_done_menu (void)
|
||||
}
|
||||
|
||||
|
||||
void edit_drop_menu_cmd (WEdit * e, int which)
|
||||
void
|
||||
edit_drop_menu_cmd (WEdit * e, int which)
|
||||
{
|
||||
if (edit_menubar->active)
|
||||
return;
|
||||
edit_menubar->active = 1;
|
||||
edit_menubar->dropped = drop_menus;
|
||||
edit_menubar->previous_selection = which >= 0 ? which : dlg_item_number (edit_dlg);
|
||||
if (which >= 0)
|
||||
if (which >= 0) {
|
||||
edit_menubar->selected = which;
|
||||
dlg_select_widget (edit_dlg, edit_menubar);
|
||||
edit_menubar->previous_selection = which;
|
||||
} else {
|
||||
edit_menubar->previous_selection =
|
||||
dlg_item_number (e->widget.parent);
|
||||
}
|
||||
|
||||
dlg_select_widget (e->widget.parent, edit_menubar);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user