gofmt: format all remaining files with the go1.27 toolchain

The tree was formatted with an older gofmt; go1.27's gofmt additionally
wants: EOF exactly one newline (no trailing blank lines), imports sorted
alphabetically within a block, mixed-precedence binary expressions
re-spaced for grouping ((a+b)/c), single-field composite literals
un-aligned, adjacent one-line method signatures aligned, and one-line
bodies containing a compound statement expanded. Applied repo-wide
(31 files under internal/); pure formatting, no semantic changes —
build and the full test suite pass.
This commit is contained in:
gmp
2026-08-23 10:03:27 -04:00
parent 180fa966c8
commit 06b1444207
31 changed files with 279 additions and 247 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func TestEditorInitialLayout(t *testing.T) {
t.Fatalf("GoToEditor: %v", err)
}
h.SendConfig(780, 1688)
// Wait for a new frame after switching to editor page
_, err := e2e.WaitForNewFrame(h, h.FrameCount(), 5*time.Second)
if err != nil {
+1 -1
View File
@@ -14,7 +14,7 @@ type TestScenario struct {
Setup func(*Harness)
Actions []HarnessAction
Assertions []FrameAssertion
FrameIndex int // which frame to assert on (-1 for last)
FrameIndex int // which frame to assert on (-1 for last)
Timeout time.Duration
}
+1 -1
View File
@@ -646,7 +646,7 @@ func TestRestore_LinePinHoldsAcrossLateWrapFeedback(t *testing.T) {
File: "/wrap.txt",
Cursor: 0,
Scroll: float64(ui.Dp(500 * lh)), // the saving session's visual-space offset
ScrollLine: 200, // the logical line at the viewport top
ScrollLine: 200, // the logical line at the viewport top
ScrollSub: 0,
}
+1 -1
View File
@@ -248,7 +248,7 @@ func TestSortModeChangePreservesSearchFilter(t *testing.T) {
// When the sort mode changes, the position map changes,
// so the *index* of the entry "Documents" (which matches "doc")
// will change!
// Let's print the entries to see if they are still correct,
// ignoring the index values themselves.
// (Owner-side snapshot: all reads happen on the logic goroutine.)