From e51ffc1a6efec524769283c34f29ead88ce8608c Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Tue, 25 Apr 2023 00:10:27 +0200 Subject: core: add cursor key l to quote focused line Fixes #1913 --- src/gui/gui-chat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/gui-chat.c') diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index eae62aa6a..2a88353d7 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -84,7 +84,7 @@ gui_chat_init () /* some hsignals */ hook_hsignal (NULL, "chat_quote_time_prefix_message;chat_quote_prefix_message;" - "chat_quote_message", + "chat_quote_message;chat_quote_focused_line", &gui_chat_hsignal_quote_line_cb, NULL, NULL); } @@ -1104,7 +1104,9 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data, ptr_prefix++; } } - message = hashtable_get (hashtable, "_chat_line_message"); + + message = (strstr (signal, "focused_line")) ? + hashtable_get (hashtable, "_chat_focused_line") : hashtable_get (hashtable, "_chat_line_message"); if (!message) return WEECHAT_RC_OK; -- cgit v1.2.3