* wtools.c (quick_dialog_skip): Perform tilde expansion on input
widgets that use cd completion.
Этот коммит содержится в:
родитель
42da92333f
Коммит
2256237cd9
@ -1,5 +1,8 @@
|
||||
2003-11-27 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* wtools.c (quick_dialog_skip): Perform tilde expansion on input
|
||||
widgets that use cd completion.
|
||||
|
||||
* utilunix.c (tilde_expand): Preserve tilde if the username
|
||||
could not be found. Don't ever return NULL. Change callers not
|
||||
to check for NULL.
|
||||
|
@ -316,7 +316,8 @@ quick_dialog_skip (QuickDialog *qd, int nskip)
|
||||
|
||||
if (qd->xpos == -1)
|
||||
dd = create_dlg (0, 0, qd->ylen, qd->xlen, dialog_colors, NULL,
|
||||
qd->help, qd->title, DLG_CENTER | DLG_TRYUP | DLG_REVERSE);
|
||||
qd->help, qd->title,
|
||||
DLG_CENTER | DLG_TRYUP | DLG_REVERSE);
|
||||
else
|
||||
dd = create_dlg (qd->ypos, qd->xpos, qd->ylen, qd->xlen,
|
||||
dialog_colors, NULL, qd->help, qd->title,
|
||||
@ -401,7 +402,11 @@ quick_dialog_skip (QuickDialog *qd, int nskip)
|
||||
break;
|
||||
|
||||
case quick_input:
|
||||
*qw->str_result = g_strdup (((WInput *) w)->buffer);
|
||||
if (qw->value & 2)
|
||||
*qw->str_result =
|
||||
tilde_expand (((WInput *) w)->buffer);
|
||||
else
|
||||
*qw->str_result = g_strdup (((WInput *) w)->buffer);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user