mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 00:03:12 +02:00
core: add identifier in buffer lines (closes #901)
For buffers with formatted content, the "id" starts to 0 on each buffer and is incremented on each new line displayed (it is reset to 0 if reaching INT_MAX). For buffers with free content, the "id" is set to the same value as "y" (ie the line number, starting to 0).
This commit is contained in:
@@ -370,6 +370,7 @@ TEST(GuiBuffer, NewProps)
|
||||
POINTERS_EQUAL(NULL, buffer->own_lines->first_line);
|
||||
POINTERS_EQUAL(NULL, buffer->own_lines->last_line);
|
||||
POINTERS_EQUAL(NULL, buffer->own_lines->last_read_line);
|
||||
LONGS_EQUAL(0, buffer->next_line_id);
|
||||
LONGS_EQUAL(0, buffer->time_for_each_line);
|
||||
LONGS_EQUAL(2, buffer->chat_refresh_needed);
|
||||
LONGS_EQUAL(0, buffer->nicklist);
|
||||
|
||||
Reference in New Issue
Block a user