mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
support multiple scripts
This commit is contained in:
parent
d4ed3460fc
commit
f47154d1a9
@ -351,7 +351,7 @@ Text FE
|
||||
|
||||
gui-readline.c:
|
||||
"gui key pressed", int key
|
||||
"paste event", char *paste
|
||||
"paste event", char *paste, char *arg
|
||||
|
||||
gui-printtext.c:
|
||||
"beep"
|
||||
|
@ -428,7 +428,7 @@ static void paste_print(void)
|
||||
g_array_free(garr, TRUE);
|
||||
}
|
||||
|
||||
static void paste_event(void)
|
||||
static void paste_event(const char *arg)
|
||||
{
|
||||
GArray *garr;
|
||||
unichar *arr;
|
||||
@ -463,7 +463,7 @@ static void paste_event(void)
|
||||
}
|
||||
}
|
||||
|
||||
if (signal_emit("paste event", 1, str->str)) {
|
||||
if (signal_emit("paste event", 2, str->str, arg)) {
|
||||
paste_flush(NULL);
|
||||
}
|
||||
|
||||
@ -1062,10 +1062,10 @@ static void key_paste_edit(void)
|
||||
}
|
||||
}
|
||||
|
||||
static void key_paste_event(void)
|
||||
static void key_paste_event(const char *arg)
|
||||
{
|
||||
if (paste_prompt) {
|
||||
paste_event();
|
||||
paste_event(arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user