fix: error.InvalidSwapTabsArgument when using save as on an ephemeral buffer
This commit is contained in:
parent
4858821ebb
commit
9fb9b45c4d
1 changed files with 1 additions and 1 deletions
|
|
@ -1499,7 +1499,7 @@ const cmds = struct {
|
||||||
|
|
||||||
pub fn place_next_tab(self: *Self, ctx: Ctx) Result {
|
pub fn place_next_tab(self: *Self, ctx: Ctx) Result {
|
||||||
var pos: enum { before, after } = undefined;
|
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) })) {
|
if (try ctx.args.match(.{ tp.extract(&pos), tp.extract(&buffer_ref) })) {
|
||||||
_ = try self.widgets_widget.msg(.{ "place_next_tab", pos, buffer_ref });
|
_ = try self.widgets_widget.msg(.{ "place_next_tab", pos, buffer_ref });
|
||||||
} else if (try ctx.args.match(.{"atend"})) {
|
} else if (try ctx.args.match(.{"atend"})) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue