Close the temp ttyout file in the SGR deduplication test

The file is opened under t.TempDir() and never closed, so the cleanup
that TempDir registers cannot remove it on Windows, where an open file
cannot be unlinked. The test itself passes; it is the cleanup that fails
the run. history_test.go and options_test.go already close theirs.
This commit is contained in:
Cyrus authored and Junegunn Choi committed 2026-08-14 19:16:30 +09:00
1 parent ca4c1b80e3
commit 85a2a33612
1 file changed
+1
+1
View File
@@ -434,6 +434,7 @@ func TestLightRendererSGRDeduplication(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer out.Close()
r.ttyout = out
w := r.NewWindow(0, 0, 40, 4, WindowList, MakeBorderStyle(BorderNone, true), false).(*LightWindow)