fix(editor): correct signature of drag_to command

This commit is contained in:
CJ van den Berg 2024-07-02 09:55:33 +02:00
parent 563772659f
commit 9e323fe85e

View file

@ -1742,7 +1742,7 @@ pub const Editor = struct {
self.clamp_mouse(); self.clamp_mouse();
} }
pub fn drag_to(self: *Self, ctx: Context) !void { pub fn drag_to(self: *Self, ctx: Context) Result {
var y: i32 = 0; var y: i32 = 0;
var x: i32 = 0; var x: i32 = 0;
if (!try ctx.args.match(.{ tp.extract(&y), tp.extract(&x) })) if (!try ctx.args.match(.{ tp.extract(&y), tp.extract(&x) }))