MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / previous

Method previous

src/command_system/input_processing.py:816–821  ·  view source on GitHub ↗

Get previous history entry (up arrow).

(self)

Source from the content-addressed store, hash-verified

814 self._cursor = len(self._entries)
815
816 def previous(self) -> str | None:
817 """Get previous history entry (up arrow)."""
818 if not self._entries:
819 return None
820 self._cursor = max(0, self._cursor - 1)
821 return self._entries[self._cursor]
822
823 def next(self) -> str | None:
824 """Get next history entry (down arrow)."""

Callers 3

test_previousMethod · 0.95
test_nextMethod · 0.95
test_previous_emptyMethod · 0.95

Calls

no outgoing calls

Tested by 3

test_previousMethod · 0.76
test_nextMethod · 0.76
test_previous_emptyMethod · 0.76