From 46de8fe3c343aa397d8ab24d0b5a67f0f6da184d Mon Sep 17 00:00:00 2001 From: BrookJeynes Date: Tue, 1 Apr 2025 16:56:19 +1000 Subject: [PATCH] fix: Allow the cursor to be moved left and right. --- src/event_handlers.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/event_handlers.zig b/src/event_handlers.zig index 94e4a9d..2a39d1e 100644 --- a/src/event_handlers.zig +++ b/src/event_handlers.zig @@ -679,6 +679,8 @@ pub fn handleInputEvent(app: *App, event: App.Event) !void { if (app.state != .help_menu) app.state = .normal; app.directories.entries.selected = selected; }, + Key.left => app.text_input.cursorLeft(), + Key.right => app.text_input.cursorRight(), Key.up => { if (app.state == .command) { if (app.command_history.next()) |command| { -- 2.51.2