diff options
Diffstat (limited to 'src/host/Host.zig')
| -rw-r--r-- | src/host/Host.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/host/Host.zig b/src/host/Host.zig index 3485d79..4f45ace 100644 --- a/src/host/Host.zig +++ b/src/host/Host.zig @@ -704,6 +704,10 @@ pub fn runLine(self: *Host, line: []const u8, now: u64) !void { // The sketch has printed its own error already. if (err == error.NotRecording) { self.console.log("Not recording (an export): no marks or clips."); + } else if (err == error.HistoryDropped) { + self.console.log("That part of the history is gone: a save keeps 64 MiB, the newest."); + } else if (err == error.SaveFull) { + self.console.log("No room for a new mark: marks and the present fill the save. Save over a mark's name (its older one goes with history), or start another save (--state)."); } else if (err != error.CommandFailed) self.console.print("{t}. Type help for usage.", .{err}); if (self.timeline.restored) self.jumped = true; try self.restoredInput(now); @@ -947,6 +951,8 @@ fn openSessions(self: *Host, record: bool) void { self.print("not saved: {s}: {t}", .{ path, err }); break :blk .{ .gpa = self.gpa, .io = self.io }; }; + // Without `.record`, history is trimmed to the present and the marks. + self.sessions.history = record; if (o.headless or self.sessions.mode() != .file) return; self.print("{s} to {s}", .{ if (record) "recording" else "saving", path }); } |
