1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 11:13:12 +02:00

Save last read line (for marker) within /upgrade

This commit is contained in:
Sebastien Helleu
2008-11-22 17:47:25 +01:00
parent 828e9a835f
commit 09bed16dbd
4 changed files with 11 additions and 2 deletions
+4
View File
@@ -1565,6 +1565,7 @@ gui_buffer_add_to_infolist (struct t_infolist *infolist,
int
gui_buffer_line_add_to_infolist (struct t_infolist *infolist,
struct t_gui_buffer *buffer,
struct t_gui_line *line)
{
struct t_infolist_item *ptr_item;
@@ -1622,6 +1623,9 @@ gui_buffer_line_add_to_infolist (struct t_infolist *infolist,
return 0;
if (!infolist_new_var_string (ptr_item, "message", line->message))
return 0;
if (!infolist_new_var_integer (ptr_item, "last_read_line",
(buffer->last_read_line == line) ? 1 : 0))
return 0;
return 1;
}