mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
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
This commit is contained in:
parent
488e7b70f4
commit
768daa6824
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user