From 768daa68240085570ed4a6a6b9713628c906cc2b Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 11 Nov 2002 06:54:32 +0000 Subject: [PATCH] fixes to allow you to register a new keyboard redirection inside a redirection handler. patch by c0ffee. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2995 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-readline.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 0e1a1f31..66867ffb 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -81,10 +81,10 @@ static void handle_key_redirect(int key) data = redir->data; g_free_and_null(redir); + gui_entry_set_prompt(active_entry, ""); + if (func != NULL) func(key, data, active_win->active_server, active_win->active); - - gui_entry_set_prompt(active_entry, ""); } static void handle_entry_redirect(const char *line) @@ -98,12 +98,12 @@ static void handle_entry_redirect(const char *line) data = redir->data; g_free_and_null(redir); + gui_entry_set_prompt(active_entry, ""); + if (func != NULL) { func(line, data, active_win->active_server, active_win->active); } - - gui_entry_set_prompt(active_entry, ""); } static int get_scroll_count(void)