Fix command history with history_backward/forward methods

auto_up/auto_down were wrong - use history_backward/history_forward
for proper command history navigation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
dullfig 2026-01-11 15:23:41 -08:00
parent 8e98e98bf1
commit 4dcc726280

View file

@ -195,12 +195,12 @@ class TUIConsole:
@kb.add("up")
def handle_up(event):
"""Previous command in history."""
self.input_buffer.auto_up()
self.input_buffer.history_backward()
@kb.add("down")
def handle_down(event):
"""Next command in history."""
self.input_buffer.auto_down()
self.input_buffer.history_forward()
# Page Up/Down scroll output (no focus change needed)
@kb.add("pageup")