1
0
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:
Sébastien Helleu
2022-11-11 09:35:11 +01:00
parent 8c44dc53eb
commit bab73cfaa5
15 changed files with 192 additions and 2 deletions
+1
View File
@@ -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);