format fix

This commit is contained in:
abue-ammar
2026-09-27 01:50:09 +06:00
parent ed6230780b
commit 04c6192dcd
4 changed files with 13 additions and 10 deletions
+5 -5
View File
@@ -50,11 +50,11 @@ struct InstalledAITests {
try FileManager.default.setAttributes([.posixPermissions: 0o755], ofItemAtPath: cli.path)
// The shape `mise activate fish` takes: PATH set only when interactive, after a greeting.
try """
echo 'Welcome to fish'
if status is-interactive
set -gx PATH \(tools.path) $PATH
end
""".write(
echo 'Welcome to fish'
if status is-interactive
set -gx PATH \(tools.path) $PATH
end
""".write(
to: config.appending(path: "fish/config.fish"), atomically: true, encoding: .utf8)
} catch {
expect(false, "the fish fixture is written: \(error)")
+3 -2
View File
@@ -788,8 +788,9 @@ struct WindowRoomTests {
name: "Design", windows: [window("figma", id: 12), window("notes", id: 13)],
lastEnteredAt: Date(timeIntervalSince1970: 30))
let edited = Room(
id: learned.id, name: "Design Review", windows: [window("figma"), window("mail")])
.keepingRuntime(of: learned)
id: learned.id, name: "Design Review", windows: [window("figma"), window("mail")]
)
.keepingRuntime(of: learned)
expect(
edited.name == "Design Review" && edited.lastEnteredAt == learned.lastEnteredAt,
"an edited room keeps when it was last entered")
@@ -77,8 +77,9 @@ struct WindowManagementSettingsView: View {
.foregroundStyle(.secondary)
Stepper(
"Gap between windows", value: $settings.windowGap,
in: WindowPlacementEngine.gapRange, step: 2)
.labelsHidden()
in: WindowPlacementEngine.gapRange, step: 2
)
.labelsHidden()
}
} label: {
SettingsRowTitle(.windowManagementOptions, "Gap between windows")
+2 -1
View File
@@ -90,7 +90,8 @@ enum ExecutableLocator {
watchdog.cancel()
guard process.terminationStatus == 0 else { return nil }
// Startup and logout files can print on either side of the lookup's answer.
let path = String(decoding: data, as: UTF8.self)
let path =
String(decoding: data, as: UTF8.self)
.split(whereSeparator: \.isNewline)
.last { $0.hasPrefix(answerMarker) }?
.dropFirst(answerMarker.count)