diff --git a/src/tui/mode/mini/move_to_char.zig b/src/tui/mode/mini/move_to_char.zig index 05eeaaa..9c4b7ac 100644 --- a/src/tui/mode/mini/move_to_char.zig +++ b/src/tui/mode/mini/move_to_char.zig @@ -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,