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:
parent
8e98e98bf1
commit
4dcc726280
1 changed files with 2 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue