commit d525e50

delthas  ·  2022-05-10 09:01:48 +0000 UTC
parent 032dd99
Fix horizontal channel buffer clicks on negative positions
1 files changed,  +1, -1
M app.go
M app.go
+1, -1
1@@ -470,7 +470,7 @@ func (app *App) handleMouseEvent(ev *tcell.EventMouse) {
2 				app.win.GoToBufferNo(i)
3 			}
4 		} else if app.win.ChannelWidth() == 0 && y == h-1 {
5-			if i := app.win.HorizontalBufferOffset(x); i == app.win.ClickedBuffer() {
6+			if i := app.win.HorizontalBufferOffset(x); i >= 0 && i == app.win.ClickedBuffer() {
7 				app.win.GoToBufferNo(i)
8 			}
9 		} else if x > w-app.win.MemberWidth() {