diff options
Diffstat (limited to 'feature-tests')
-rw-r--r-- | feature-tests/hide_password.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/feature-tests/hide_password.pl b/feature-tests/hide_password.pl index 2fe01fc..695a985 100644 --- a/feature-tests/hide_password.pl +++ b/feature-tests/hide_password.pl @@ -82,9 +82,13 @@ sub init { } sub cmd_password { - # Hmm, broken. - #Irssi::gui_input_set('Password: '); - begin_entry_redirect(); + + # not sure why this delay is needed, but otherwise + # setting the input (" Password: ") doesn't work. + Irssi::timeout_add_once(10, sub { + Irssi::gui_input_set('Password: '); + begin_entry_redirect(); + }, 0); } sub begin_entry_redirect { |