From fe04c7f25f639d1783c5e7874c32a7068ef79de6 Mon Sep 17 00:00:00 2001 From: Ole Andre Birkedal Date: Mon, 7 Sep 2020 10:11:00 +0200 Subject: [PATCH] also draw when we receive buffer updates --- ui/buffer_events.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/buffer_events.go b/ui/buffer_events.go index ddaf947..58bbe2e 100644 --- a/ui/buffer_events.go +++ b/ui/buffer_events.go @@ -7,7 +7,7 @@ import ( ) func (v *View) ChangeUserNick(channel, oldnick, newnick string, time int64, bid int) { - v.app.QueueUpdate(func() { + v.app.QueueUpdateDraw(func() { index, c, err := v.getUserIndex(channel, oldnick, bid) if err == nil { @@ -21,7 +21,7 @@ func (v *View) ChangeUserNick(channel, oldnick, newnick string, time int64, bid } func (v *View) AddQuitEvent(channel, nick, hostmask, reason string, time int64, bid int) { - v.app.QueueUpdate(func() { + v.app.QueueUpdateDraw(func() { _, c := v.getChannel(channel, bid) if c != nil { @@ -33,7 +33,7 @@ func (v *View) AddQuitEvent(channel, nick, hostmask, reason string, time int64, } func (v *View) AddPartEvent(channel, nick, hostmask string, time int64, bid int) { - v.app.QueueUpdate(func() { + v.app.QueueUpdateDraw(func() { _, c := v.getChannel(channel, bid) if c != nil { @@ -45,7 +45,7 @@ func (v *View) AddPartEvent(channel, nick, hostmask string, time int64, bid int) } func (v *View) AddJoinEvent(channel, nick, hostmask string, time int64, bid int) { - v.app.QueueUpdate(func() { + v.app.QueueUpdateDraw(func() { _, c := v.getChannel(channel, bid) if c != nil { @@ -63,7 +63,7 @@ func getTimestamp(t int64) string { } func (v *View) AddBufferMsg(channel, from, msg string, time int64, bid int) { - v.app.QueueUpdate(func() { + v.app.QueueUpdateDraw(func() { _, c := v.getChannel(channel, bid) if c != nil {