fix: error code in move_to_char

This commit is contained in:
CJ van den Berg 2024-11-20 20:11:11 +01:00
parent 386453ee61
commit 22edc62874
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -33,7 +33,7 @@ const Operation = enum {
pub fn create(allocator: Allocator, ctx: command.Context) !struct { tui.Mode, tui.MiniMode } {
var right: bool = true;
const select = if (tui.current().mainview.dynamic_cast(mainview)) |mv| if (mv.get_editor()) |editor| if (editor.get_primary().selection) |_| true else false else false else false;
_ = ctx.args.match(.{tp.extract(&right)}) catch return error.NotFound;
_ = ctx.args.match(.{tp.extract(&right)}) catch return error.InvalidArgument;
const self: *Self = try allocator.create(Self);
self.* = .{
.allocator = allocator,