From 9e323fe85e44910c571252e23075d9665aa8b39d Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 2 Jul 2024 09:55:33 +0200 Subject: [PATCH] fix(editor): correct signature of drag_to command --- src/tui/editor.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index f450ddd..1c5cb33 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -1742,7 +1742,7 @@ pub const Editor = struct { 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 x: i32 = 0; if (!try ctx.args.match(.{ tp.extract(&y), tp.extract(&x) }))