summaryrefslogtreecommitdiff
path: root/src/gui/gui-chat.c
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-04-25 00:10:27 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2023-04-25 00:11:30 +0200
commite51ffc1a6efec524769283c34f29ead88ce8608c (patch)
tree0c1214dc5fe680677ad4559a2f949604b3ad72b5 /src/gui/gui-chat.c
parenta401fbf217a9e299310266dbdd1743241d5ec161 (diff)
downloadweechat-e51ffc1a6efec524769283c34f29ead88ce8608c.zip
core: add cursor key l to quote focused line
Fixes #1913
Diffstat (limited to 'src/gui/gui-chat.c')
-rw-r--r--src/gui/gui-chat.c6
1 files changed, 4 insertions, 2 deletions
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;