mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* editcmd.c: Clean up global variables in the completion code.
This commit is contained in:
parent
6a30513830
commit
74d224e1b2
@ -1,5 +1,7 @@
|
|||||||
2002-08-22 Pavel Roskin <proski@gnu.org>
|
2002-08-22 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* editcmd.c: Clean up global variables in the completion code.
|
||||||
|
|
||||||
* editwidget.c: Use new dialog flags.
|
* editwidget.c: Use new dialog flags.
|
||||||
* editcmd.c: Likewise.
|
* editcmd.c: Likewise.
|
||||||
(edit_completion_dialog): Set DLG_COMPACT for the dialog.
|
(edit_completion_dialog): Set DLG_COMPACT for the dialog.
|
||||||
|
@ -2459,9 +2459,7 @@ static void edit_set_search_parameters (int rs, int rb, int rr, int rw, int rc)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned int MAX_WORD_COMPLETIONS = 100; /* in listbox */
|
const static int MAX_WORD_COMPLETIONS = 100; /* in listbox */
|
||||||
unsigned int compl_dlg_h; /* completion dialog height */
|
|
||||||
unsigned int compl_dlg_w; /* completion dialog width */
|
|
||||||
|
|
||||||
|
|
||||||
/* collect the possible completions */
|
/* collect the possible completions */
|
||||||
@ -2536,7 +2534,9 @@ void edit_completion_dialog (WEdit *edit, int max_len, int word_len,
|
|||||||
char *curr = NULL;
|
char *curr = NULL;
|
||||||
Dlg_head *compl_dlg;
|
Dlg_head *compl_dlg;
|
||||||
WListbox *compl_list;
|
WListbox *compl_list;
|
||||||
|
unsigned int compl_dlg_h; /* completion dialog height */
|
||||||
|
unsigned int compl_dlg_w; /* completion dialog width */
|
||||||
|
|
||||||
/* calculate the dialog metrics */
|
/* calculate the dialog metrics */
|
||||||
compl_dlg_h = num_compl + 2;
|
compl_dlg_h = num_compl + 2;
|
||||||
compl_dlg_w = max_len + 4;
|
compl_dlg_w = max_len + 4;
|
||||||
|
Loading…
Reference in New Issue
Block a user