Skip to content

Commit

Permalink
small out buf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yarik committed Oct 30, 2017
1 parent 0221cab commit 2aca8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/out/out.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (p *Printer) PrintChat(username string, users map[string]string, messages [
}
messagesBuf, my := writeMsgs(uw, username, users, messages)
if fromDaemon && len(messages) == my {
p.buf.Reset()
return
}
p.buf.Write(messagesBuf)
Expand Down

0 comments on commit 2aca8e4

Please sign in to comment.