X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=apps%2Firssi%2Fsrc%2Fsilc%2Fcore%2Fclientutil.c;h=0daceefff530e2952e227223e0271abc90067985;hp=a8a1b5b7328e318b547ac8f36e3a2b9d86049c51;hb=b953803ae59ea3e66e3ed799b90dbb66a9002fce;hpb=bd463a75d37dd2ec164dc14dee4bb2550d6a778a diff --git a/apps/irssi/src/silc/core/clientutil.c b/apps/irssi/src/silc/core/clientutil.c index a8a1b5b7..0daceeff 100644 --- a/apps/irssi/src/silc/core/clientutil.c +++ b/apps/irssi/src/silc/core/clientutil.c @@ -411,6 +411,14 @@ static void silc_keyboard_entry_redirect_abort(SilcAsyncOperation op, * the operation has been aborted. */ ctx->user_prompt_proc(NULL, ctx->user_context, KeyboardCompletionAborted); + + /* + * Allow new prompt after we've abored despite us leaking Irssi prompt + * data. It's more important to get new prompt up and this abort + * guarantees we handle things correctly towards silcclient library by + * calling the callback above. + */ + silc_keyboard_prompt_pending = FALSE; } static void silc_keyboard_entry_redirect_completion(const char *line,