diff options
-rw-r--r-- | app.go | 1 | ||||
-rw-r--r-- | ui/ui.go | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -795,6 +795,7 @@ func (app *App) handleIRCEvent(netID string, ev interface{}) { // Restore last buffer if netID == app.lastNetID && ev.Channel == app.lastBuffer { app.win.JumpBufferNetwork(app.lastNetID, app.lastBuffer) + app.win.HorizontalBufferScrollTo() app.lastNetID = "" app.lastBuffer = "" } @@ -253,7 +253,11 @@ func (ui *UI) HasOverlay() bool { } func (ui *UI) AddBuffer(netID, netName, title string) (i int, added bool) { - return ui.bs.Add(netID, netName, title) + i, added = ui.bs.Add(netID, netName, title) + if added { + ui.HorizontalBufferScrollTo() + } + return } func (ui *UI) RemoveBuffer(netID, title string) { |