Skip to content

Commit 948b057

Browse files
committed
Fix remaining gofmt complaints
1 parent eadc402 commit 948b057

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Diff for: internal/action/tab.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ func InitTabs(bufs []*buffer.Buffer) {
211211
for _, b := range bufs[1:] {
212212
if multiopen == "vsplit" {
213213
MainTab().CurPane().VSplitBuf(b)
214-
} else { // default hsplit
214+
} else { // default hsplit
215215
MainTab().CurPane().HSplitBuf(b)
216216
}
217217
}

Diff for: internal/config/plugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type Plugin struct {
7171
Info *PluginInfo // json file containing info
7272
Srcs []RuntimeFile // lua files
7373
Loaded bool
74-
Default bool // pre-installed plugin
74+
Default bool // pre-installed plugin
7575
}
7676

7777
// IsLoaded returns if a plugin is enabled

Diff for: internal/display/softwrap.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func (w *BufWindow) diff(s1, s2 SLoc) int {
291291
// within the buffer boundaries.
292292
func (w *BufWindow) Scroll(s SLoc, n int) SLoc {
293293
if !w.Buf.Settings["softwrap"].(bool) {
294-
s.Line = util.Clamp(s.Line + n, 0, w.Buf.LinesNum()-1)
294+
s.Line = util.Clamp(s.Line+n, 0, w.Buf.LinesNum()-1)
295295
return s
296296
}
297297
return w.scroll(s, n)

Diff for: internal/display/tabwindow.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ func (w *TabWindow) Display() {
112112
}
113113
return tabBarStyle, tabBarActiveStyle
114114
}
115-
115+
116116
draw := func(r rune, n int, active bool, reversed bool) {
117117
tabBarStyle, tabBarActiveStyle := reverseStyles(reversed)
118-
118+
119119
style := tabBarStyle
120120
if active {
121121
style = tabBarActiveStyle
@@ -147,23 +147,23 @@ func (w *TabWindow) Display() {
147147
} else {
148148
draw(' ', 1, false, tabCharHighlight)
149149
}
150-
150+
151151
for _, c := range n {
152152
draw(c, 1, i == w.active, tabCharHighlight)
153153
}
154-
154+
155155
if i == len(w.Names)-1 {
156156
done = true
157157
}
158-
158+
159159
if i == w.active {
160160
draw(']', 1, true, tabCharHighlight)
161161
draw(' ', 2, true, globalTabReverse)
162162
} else {
163163
draw(' ', 1, false, tabCharHighlight)
164164
draw(' ', 2, false, globalTabReverse)
165165
}
166-
166+
167167
if x >= w.Width {
168168
break
169169
}

Diff for: pkg/highlight/highlighter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func (h *Highlighter) highlightRegion(highlights LineMatch, start int, canMatchE
162162
if curRegion.group == curRegion.limitGroup || p.group == curRegion.limitGroup {
163163
matches := findAllIndex(p.regex, line)
164164
for _, m := range matches {
165-
if ((endLoc == nil) || (m[0] < endLoc[0])) {
165+
if (endLoc == nil) || (m[0] < endLoc[0]) {
166166
for i := m[0]; i < m[1]; i++ {
167167
fullHighlights[i] = p.group
168168
}

0 commit comments

Comments
 (0)