mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 11:13:12 +02:00
core: add "_chat_line_x" in focus hashtable (for buffers with free content)
This commit is contained in:
@@ -88,6 +88,7 @@ gui_focus_get_info (int x, int y)
|
||||
x, y,
|
||||
&focus_info->chat,
|
||||
&focus_info->chat_line,
|
||||
&focus_info->chat_line_x,
|
||||
&focus_info->chat_word,
|
||||
&focus_info->chat_bol,
|
||||
&focus_info->chat_eol);
|
||||
@@ -176,6 +177,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
|
||||
str_tags = string_build_with_split_string ((const char **)((focus_info->chat_line)->data)->tags_array, ",");
|
||||
str_message = gui_color_decode (((focus_info->chat_line)->data)->message, NULL);
|
||||
nick = gui_line_get_nick_tag (focus_info->chat_line);
|
||||
FOCUS_INT("_chat_line_x", focus_info->chat_line_x);
|
||||
FOCUS_INT("_chat_line_y", ((focus_info->chat_line)->data)->y);
|
||||
FOCUS_TIME("_chat_line_date", ((focus_info->chat_line)->data)->date);
|
||||
FOCUS_TIME("_chat_line_date_printed", ((focus_info->chat_line)->data)->date_printed);
|
||||
@@ -195,6 +197,7 @@ gui_focus_to_hashtable (struct t_gui_focus_info *focus_info, const char *key)
|
||||
}
|
||||
else
|
||||
{
|
||||
FOCUS_STR("_chat_line_x", "-1");
|
||||
FOCUS_STR("_chat_line_y", "-1");
|
||||
FOCUS_STR("_chat_line_date", "-1");
|
||||
FOCUS_STR("_chat_line_date_printed", "-1");
|
||||
|
||||
Reference in New Issue
Block a user