first_line_not_read
is 0 for new buffer with a message
#2029
Labels
bug
Unexpected problem or unintended behavior
first_line_not_read
is 0 for new buffer with a message
#2029
Bug summary
If you create a new buffer and print a line to it, without switching to it,
first_line_not_read
is0
. Shouldn't it be1
since you haven't read the line?Steps to reproduce
1. Run
weechat -t -r '/buffer add 2; /command -buffer core.2 * /print 1'
2. Load
hdata.py
and see thatfirst_line_not_read
for the buffer is0
Current behavior
first_line_not_read
is0
for a new unread buffer with only one line.Expected behavior
It's
1
.Suggested solutions
Set
first_line_not_read
to1
when the first line is printed in a buffer.The text was updated successfully, but these errors were encountered: