Skip to content

Commit

Permalink
also draw when we receive buffer updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Andre Birkedal committed Sep 7, 2020
1 parent 1a2328d commit fe04c7f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/buffer_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit fe04c7f

Please sign in to comment.