This commit is contained in:
Joakim
2026-10-14 11:01:40 +02:00
parent 8256254e38
commit f4c855f547
3 changed files with 6 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# ai 0.3.4 # ai 0.3.5
Terminal AI-klient för OpenRouter, anpassad för Lyra/PicoCalc. Terminal AI-klient för OpenRouter, anpassad för Lyra/PicoCalc.

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "ai-terminal" name = "ai-terminal"
version = "0.3.3" version = "0.3.5"
description = "Compact terminal AI client for OpenRouter" description = "Compact terminal AI client for OpenRouter"
requires-python = ">=3.10" requires-python = ">=3.10"
dependencies = ["httpx>=0.27,<1", "PyYAML>=6.0"] dependencies = ["httpx>=0.27,<1", "PyYAML>=6.0"]

View File

@@ -491,10 +491,10 @@ class App:
if self.joe_key(key): if self.joe_key(key):
return return
# Before the input wraps to multiple visual lines, arrows scroll history. # In a single visual input line, only Up/Down scroll history.
if not multiline and key in (curses.KEY_UP, curses.KEY_DOWN, # Left/Right always remain normal cursor movement in the input.
curses.KEY_LEFT, curses.KEY_RIGHT): if not multiline and key in (curses.KEY_UP, curses.KEY_DOWN):
if key in (curses.KEY_UP, curses.KEY_LEFT): if key == curses.KEY_UP:
self.scroll = min( self.scroll = min(
max(0, len(self.chat_lines(self.display_messages(), self.s.getmaxyx()[1]))), max(0, len(self.chat_lines(self.display_messages(), self.s.getmaxyx()[1]))),
self.scroll + 1, self.scroll + 1,