fix: error.InvalidSwapTabsArgument when using save as on an ephemeral buffer

This commit is contained in:
CJ van den Berg 2026-01-31 20:49:53 +01:00
parent 4858821ebb
commit 9fb9b45c4d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -1499,7 +1499,7 @@ const cmds = struct {
pub fn place_next_tab(self: *Self, ctx: Ctx) Result {
var pos: enum { before, after } = undefined;
var buffer_ref: usize = undefined;
var buffer_ref: Buffer.Ref = undefined;
if (try ctx.args.match(.{ tp.extract(&pos), tp.extract(&buffer_ref) })) {
_ = try self.widgets_widget.msg(.{ "place_next_tab", pos, buffer_ref });
} else if (try ctx.args.match(.{"atend"})) {