File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,9 @@ func (m *Menu) ChangeSelection(index int) {
9797 scrollAt := m .H + m .scroll + 1
9898 underscrollAt := m .scroll - 1
9999 if m .sel >= scrollAt {
100- m .scroll += (m .sel - scrollAt )+ 1
100+ m .scroll += (m .sel - scrollAt ) + 1
101101 } else if m .sel <= underscrollAt {
102- m .scroll -= (m .sel - underscrollAt )+ 1
102+ m .scroll -= (m .sel - underscrollAt ) + 1
103103 }
104104}
105105
Original file line number Diff line number Diff line change @@ -137,9 +137,9 @@ func (t *Table) ChangeSelection(index int) {
137137 underscrollAt := t .scroll - 1
138138
139139 if t .sel >= scrollAt {
140- t .scroll += (t .sel - scrollAt )+ 1
140+ t .scroll += (t .sel - scrollAt ) + 1
141141 } else if t .sel <= underscrollAt {
142- t .scroll -= (t .sel - underscrollAt )+ 1
142+ t .scroll -= (t .sel - underscrollAt ) + 1
143143 }
144144}
145145
You can’t perform that action at this time.
0 commit comments