diff --git a/README.md b/README.md index 6b36ecc..266cfa3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ai 0.3.4 +# ai 0.3.5 Terminal AI-klient för OpenRouter, anpassad för Lyra/PicoCalc. diff --git a/pyproject.toml b/pyproject.toml index ce6275c..ee52ad2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "ai-terminal" -version = "0.3.3" +version = "0.3.5" description = "Compact terminal AI client for OpenRouter" requires-python = ">=3.10" dependencies = ["httpx>=0.27,<1", "PyYAML>=6.0"] diff --git a/src/ai/tui.py b/src/ai/tui.py index 95e5b43..7444b65 100644 --- a/src/ai/tui.py +++ b/src/ai/tui.py @@ -491,10 +491,10 @@ class App: if self.joe_key(key): return - # Before the input wraps to multiple visual lines, arrows scroll history. - if not multiline and key in (curses.KEY_UP, curses.KEY_DOWN, - curses.KEY_LEFT, curses.KEY_RIGHT): - if key in (curses.KEY_UP, curses.KEY_LEFT): + # In a single visual input line, only Up/Down scroll history. + # Left/Right always remain normal cursor movement in the input. + if not multiline and key in (curses.KEY_UP, curses.KEY_DOWN): + if key == curses.KEY_UP: self.scroll = min( max(0, len(self.chat_lines(self.display_messages(), self.s.getmaxyx()[1]))), self.scroll + 1,