mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05: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;
|
data = redir->data;
|
||||||
g_free_and_null(redir);
|
g_free_and_null(redir);
|
||||||
|
|
||||||
|
gui_entry_set_prompt(active_entry, "");
|
||||||
|
|
||||||
if (func != NULL)
|
if (func != NULL)
|
||||||
func(key, data, active_win->active_server, active_win->active);
|
func(key, data, active_win->active_server, active_win->active);
|
||||||
|
|
||||||
gui_entry_set_prompt(active_entry, "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_entry_redirect(const char *line)
|
static void handle_entry_redirect(const char *line)
|
||||||
@ -98,12 +98,12 @@ static void handle_entry_redirect(const char *line)
|
|||||||
data = redir->data;
|
data = redir->data;
|
||||||
g_free_and_null(redir);
|
g_free_and_null(redir);
|
||||||
|
|
||||||
|
gui_entry_set_prompt(active_entry, "");
|
||||||
|
|
||||||
if (func != NULL) {
|
if (func != NULL) {
|
||||||
func(line, data, active_win->active_server,
|
func(line, data, active_win->active_server,
|
||||||
active_win->active);
|
active_win->active);
|
||||||
}
|
}
|
||||||
|
|
||||||
gui_entry_set_prompt(active_entry, "");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_scroll_count(void)
|
static int get_scroll_count(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user