Skip to content

Fixed join/part line modification panic#228

Merged
osa1 merged 1 commit into
osa1:masterfrom
trevarj:join-part-panic
Jul 2, 2020
Merged

Fixed join/part line modification panic#228
osa1 merged 1 commit into
osa1:masterfrom
trevarj:join-part-panic

Conversation

@trevarj

@trevarj trevarj commented Jul 1, 2020

Copy link
Copy Markdown
Contributor

When multiple users join/part from a channel at the same timestamp, the line gets modified. This wasn't invalidating the height calulation so it was causing an overflow if many people join/part or if your screen is small and it needs to wrap that line after modification.

Ugh, basically what I did for a fix is just add a way to force invalidating the height of the line when it's modified. Didn't think about this when I added LineDataCache for height calculation.

Closes #227

When multiple users join/part from a channel at the same
timestamp, the line gets modified. This wasn't invalidating the height
calulation so it was causing an overflow if many people join/part or if
your screen is small and it needs to wrap that line after modification.
Comment thread libtiny_tui/src/msg_area/line.rs
Comment thread libtiny_tui/src/msg_area/line.rs
@osa1

osa1 commented Jul 1, 2020

Copy link
Copy Markdown
Owner

LGTM, thanks @trevarj ! Added one inline question.

@osa1
osa1 merged commit f72227b into osa1:master Jul 2, 2020
@trevarj
trevarj deleted the join-part-panic branch July 2, 2020 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Join/Part messages overflow

2 participants