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) }))