diff options
Diffstat (limited to 'src/fe-text/gui-readline.c')
-rw-r--r-- | src/fe-text/gui-readline.c | 8 |
1 files 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) |