Skip to content

Commit 2aca8e4

Browse files
author
yarik
committed
small out buf fix
1 parent 0221cab commit 2aca8e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/out/out.go

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func (p *Printer) PrintChat(username string, users map[string]string, messages [
3939
}
4040
messagesBuf, my := writeMsgs(uw, username, users, messages)
4141
if fromDaemon && len(messages) == my {
42+
p.buf.Reset()
4243
return
4344
}
4445
p.buf.Write(messagesBuf)

0 commit comments

Comments
 (0)