1
0
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:
Ailin Nemui 2022-02-06 01:47:55 +01:00
parent d4ed3460fc
commit f47154d1a9
2 changed files with 5 additions and 5 deletions

View File

@ -351,7 +351,7 @@ Text FE
gui-readline.c: gui-readline.c:
"gui key pressed", int key "gui key pressed", int key
"paste event", char *paste "paste event", char *paste, char *arg
gui-printtext.c: gui-printtext.c:
"beep" "beep"

View File

@ -428,7 +428,7 @@ static void paste_print(void)
g_array_free(garr, TRUE); g_array_free(garr, TRUE);
} }
static void paste_event(void) static void paste_event(const char *arg)
{ {
GArray *garr; GArray *garr;
unichar *arr; 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); 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) { if (paste_prompt) {
paste_event(); paste_event(arg);
} }
} }