feat(buffers): save and restore editor metadata on buffer switch
This commit is contained in:
parent
ecca2d0b4c
commit
b45b5910ee
3 changed files with 20 additions and 8 deletions
|
@ -62,7 +62,8 @@ pub fn delete_buffer(self: *Self, file_path: []const u8) bool {
|
|||
return did_remove;
|
||||
}
|
||||
|
||||
pub fn retire(_: *Self, buffer: *Buffer) void {
|
||||
pub fn retire(_: *Self, buffer: *Buffer, meta: ?[]const u8) void {
|
||||
if (meta) |buf| buffer.set_meta(buf) catch {};
|
||||
tp.trace(tp.channel.debug, .{ "buffer", "retire", buffer.file_path, "hidden", buffer.hidden, "ephemeral", buffer.ephemeral });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue