Skip to content

Commit f765d89

Browse files
committed
Gofmt compliance
1 parent 91ac7e9 commit f765d89

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/components/menu.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

ui/components/table.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)