diff --git a/docs/signals.txt b/docs/signals.txt index 314c4dc9..81a1e3fa 100644 --- a/docs/signals.txt +++ b/docs/signals.txt @@ -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" diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 8ebf7436..8e1b66ff 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -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); } }