~taiite/senpai

d525e50f30a09b82c03926ce76a0b8252320b1c9 — delthas 15 days ago 032dd99
Fix horizontal channel buffer clicks on negative positions
1 files changed, 1 insertions(+), 1 deletions(-)

M app.go
M app.go => app.go +1 -1
@@ 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() {