diff options
| author | citrons <citrons@mondecitronne.com> | 2025-06-01 19:10:35 -0500 |
|---|---|---|
| committer | citrons <citrons@mondecitronne.com> | 2025-06-01 19:10:35 -0500 |
| commit | 335f57fbc8403b32b5e3d8ea1cb1b713cdacb5fc (patch) | |
| tree | 12a5adeededdbcf4ebdea209081bfd671c119e69 /client/buffer | |
| parent | f50a839609847169702d76560dcdc7481099d7bc (diff) | |
message history
Diffstat (limited to 'client/buffer')
| -rw-r--r-- | client/buffer/buffer.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/buffer/buffer.go b/client/buffer/buffer.go index b57ec26..921ad00 100644 --- a/client/buffer/buffer.go +++ b/client/buffer/buffer.go @@ -31,6 +31,10 @@ func (l List) Next() *List { return l.next } +func (l List) Msg() Message { + return l.msg +} + func (b *Buffer) Top() *List { return b.top } @@ -57,7 +61,7 @@ func (b *Buffer) AddTop(msg Message) { if b.top != nil { b.top.prev = &l l.next = b.top - l.odd = !b.bottom.odd + l.odd = !b.top.odd } b.top = &l if b.bottom == nil { |
