1
0
Fork 0

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 key pressed", int key
"paste event", char *paste
"paste event", char *paste, char *arg
gui-printtext.c:
"beep"

View File

@ -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);
}
}