We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ced6d94 commit 602acffCopy full SHA for 602acff
internal/action/tab.go
@@ -107,14 +107,15 @@ func (t *TabList) HandleEvent(event tcell.Event) {
107
mx, my := e.Position()
108
switch e.Buttons() {
109
case tcell.Button1:
110
- if my == t.Y && mx == 0 {
111
- t.Scroll(-4)
112
- return
113
- } else if my == t.Y && mx == t.Width-1 {
114
- t.Scroll(4)
115
116
- }
117
if len(t.List) > 1 {
+ if my == t.Y && mx == 0 {
+ t.Scroll(-4)
+ return
+ } else if my == t.Y && mx == t.Width-1 {
+ t.Scroll(4)
+ }
118
+
119
ind := t.LocFromVisual(buffer.Loc{mx, my})
120
if ind != -1 {
121
t.SetActive(ind)
0 commit comments