Merge branch 'master' into zig-0.14

This commit is contained in:
CJ van den Berg 2025-02-13 12:08:54 +01:00
commit 5fc2247bc3
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 21 additions and 5 deletions

View file

@ -4073,7 +4073,10 @@ pub const Editor = struct {
} else if (ctx.args.match(.{tp.extract(&file_path)}) catch false) {
try self.open_scratch(file_path, "", null);
self.clamp();
} else return error.InvalidOpenScratchBufferArgument;
} else {
try self.open_scratch("*scratch*", "", null);
self.clamp();
}
}
pub const open_scratch_buffer_meta: Meta = .{ .arguments = &.{ .string, .string } };