diff --git a/src/tui/editor.zig b/src/tui/editor.zig index b1e53a3..8bd011f 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -451,7 +451,7 @@ pub const Editor = struct { fn save(self: *Self) !void { const b = if (self.buffer) |p| p else return error.Stop; - if (!b.is_dirty()) return tp.exit("no changes to save"); + if (!b.is_dirty()) return self.logger.print("no changes to save", .{}); if (self.file_path) |file_path| { if (self.buffer) |b_mut| try b_mut.store_to_file_and_clean(file_path); } else return error.SaveNoFileName;