From 06d879ca1a896db73af89037ddcf5c317e1389a7 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 1 Oct 2026 11:18:32 -0300 Subject: A bare Save on a +-named pane that is no output (+Tutor) asks for a path, as +New's does, never writing a file named +Tutor Co-Authored-By: Claude Opus 5.5 --- src/pardes.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/pardes.zig') diff --git a/src/pardes.zig b/src/pardes.zig index 612a09aa..41ed0e5a 100644 --- a/src/pardes.zig +++ b/src/pardes.zig @@ -1197,6 +1197,11 @@ test "the Tutor pane is named +Tutor in the session's directory, never a bare pa p.session_dir_len = session.len; const tutor = try p.openTutorView(1); try std.testing.expectEqualStrings("/project/src/+Tutor", tutor.file.?.path); + // Its bare Save writes no file named +Tutor: it asks for a path. + while (p.nextEffect()) |_| {} + try std.testing.expect(p.executeBuiltinLine(1, "Save")); + try std.testing.expect(tutor.prompt == .save); + while (p.nextEffect()) |e| try std.testing.expect(e != .save_file); } test "first document keeps its originating shell and only opens a column when it fits" { -- cgit v1.3