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.

View File

@@ -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"]

View File

@@ -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,