* editcmd.c: Clean up global variables in the completion code.

This commit is contained in:
Pavel Roskin 2002-08-22 22:15:39 +00:00
parent 6a30513830
commit 74d224e1b2
2 changed files with 6 additions and 4 deletions

View File

@ -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.

View File

@ -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,7 +2534,9 @@ 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;
compl_dlg_w = max_len + 4;