summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authordelthas <delthas@dille.cc>2022-09-14 15:55:17 +0200
committerdelthas <delthas@dille.cc>2022-09-14 15:55:17 +0200
commit09b45e5f0818d57d02329e88fce4053e4360d3f7 (patch)
treed01b794492839f9a96350f43fb0a5d2aaddc397d /app.go
parentUse WHOX rather than WHO when available (diff)
Make the last opened channel visible in the horizontal list
When starting senpai, we jump to the last opened buffer. Offset the horizontal target list to make the buffer visible, as if scrolled to with CTRL+N. Fixes: https://todo.sr.ht/~taiite/senpai/100
Diffstat (limited to 'app.go')
-rw-r--r--app.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.go b/app.go
index 6b5614e..5ab0052 100644
--- a/app.go
+++ b/app.go
@@ -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 = ""
}