MCPcopy Index your code
hub / github.com/bpython/bpython / down_one_line

Method down_one_line

bpython/curtsiesfrontend/repl.py:1060–1071  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1058 self._set_cursor_offset(len(self.current_line), reset_rl_history=False)
1059
1060 def down_one_line(self):
1061 self.rl_history.enter(self.current_line)
1062 self._set_current_line(
1063 tabs_to_spaces(
1064 self.rl_history.forward(
1065 False, search=self.config.curtsies_right_arrow_completion
1066 )
1067 ),
1068 update_completion=False,
1069 reset_rl_history=False,
1070 )
1071 self._set_cursor_offset(len(self.current_line), reset_rl_history=False)
1072
1073 def process_simple_keypress(self, e: str):
1074 # '\n' needed for pastes

Callers 1

process_key_eventMethod · 0.95

Calls 5

_set_current_lineMethod · 0.95
_set_cursor_offsetMethod · 0.95
tabs_to_spacesFunction · 0.85
forwardMethod · 0.80
enterMethod · 0.45

Tested by

no test coverage detected