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>
|
||||
|
||||
* editcmd.c: Clean up global variables in the completion code.
|
||||
|
||||
* editwidget.c: Use new dialog flags.
|
||||
* editcmd.c: Likewise.
|
||||
(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 */
|
||||
unsigned int compl_dlg_h; /* completion dialog height */
|
||||
unsigned int compl_dlg_w; /* completion dialog width */
|
||||
const static int MAX_WORD_COMPLETIONS = 100; /* in listbox */
|
||||
|
||||
|
||||
/* collect the possible completions */
|
||||
@ -2536,6 +2534,8 @@ void edit_completion_dialog (WEdit *edit, int max_len, int word_len,
|
||||
char *curr = NULL;
|
||||
Dlg_head *compl_dlg;
|
||||
WListbox *compl_list;
|
||||
unsigned int compl_dlg_h; /* completion dialog height */
|
||||
unsigned int compl_dlg_w; /* completion dialog width */
|
||||
|
||||
/* calculate the dialog metrics */
|
||||
compl_dlg_h = num_compl + 2;
|
||||
|
Loading…
Reference in New Issue
Block a user