Skip to content

Conversation

ailin-nemui
Copy link
Contributor

reported by @dwfreed

@dwfreed
Copy link
Member

dwfreed commented Apr 7, 2021

lastlog reuses the same GString with every call of textbuffer_line2text, and depends on this function truncating the GString, otherwise when this particular edge case triggers, you'll end up with multiple copies of the same line printed by lastlog. Either test after the truncation, or make lastlog do the truncation itself before calling textbuffer_line2text.

(Originally reported to me by @mnordhoff)

@ailin-nemui
Copy link
Contributor Author

moved it to after the truncation. the actual bug (reason unclear) is the line not having a text

@ailin-nemui
Copy link
Contributor Author

#1281

@ailin-nemui ailin-nemui merged commit aa7dfea into irssi:prepare/1.2.3 Apr 8, 2021
@ailin-nemui ailin-nemui added this to the 1.2.3 milestone Apr 8, 2021
@ailin-nemui ailin-nemui deleted the null-text-save branch April 8, 2021 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants