From 8fe8af2962318c6244fc8fc173868a809d54894c Mon Sep 17 00:00:00 2001 From: Uber Veng Date: Fri, 22 May 2026 00:31:29 +0700 Subject: [PATCH] fixed bash script scrolling --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/app.rs | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9ce7000..de957d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1123,7 +1123,7 @@ dependencies = [ [[package]] name = "ostiary" -version = "1.0.4" +version = "1.0.5" dependencies = [ "anyhow", "crossterm", diff --git a/Cargo.toml b/Cargo.toml index e352469..55f35b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ostiary" -version = "1.0.4" +version = "1.0.5" edition = "2024" [dependencies] diff --git a/src/app.rs b/src/app.rs index 837897a..7a0e2cf 100644 --- a/src/app.rs +++ b/src/app.rs @@ -359,7 +359,14 @@ impl App { } // ── Text input ──────────────────────────────────── - KeyCode::Char(c) if !is_menu && !is_confirm => { + // Vim motion keys (j/k/l/h) are excluded here so they + // fall through to the vim-motion arms below. + KeyCode::Char(c) + if !is_menu + && !is_confirm + && (is_text_input + || !matches!(c, 'j' | 'k' | 'l' | 'h')) => + { input_buffer.push(c); } KeyCode::Backspace if !is_menu => {