diff options
author | delthas <delthas@dille.cc> | 2022-05-10 11:01:48 +0200 |
---|---|---|
committer | delthas <delthas@dille.cc> | 2022-05-10 11:01:48 +0200 |
commit | d525e50f30a09b82c03926ce76a0b8252320b1c9 (patch) | |
tree | bd75ca85c4807e24dacb4f35a89c30ca4efb1b3d /app.go | |
parent | Fix horizontal channel list buffer underline position (diff) |
Fix horizontal channel buffer clicks on negative positions
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -470,7 +470,7 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) { app.win.GoToBufferNo(i) } } else if app.win.ChannelWidth() == 0 && y == h-1 { - if i := app.win.HorizontalBufferOffset(x); i == app.win.ClickedBuffer() { + if i := app.win.HorizontalBufferOffset(x); i >= 0 && i == app.win.ClickedBuffer() { app.win.GoToBufferNo(i) } } else if x > w-app.win.MemberWidth() { |