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

Method up_one_line

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

Source from the content-addressed store, hash-verified

1045 self.on_enter(reset_rl_history=False)
1046
1047 def up_one_line(self):
1048 self.rl_history.enter(self.current_line)
1049 self._set_current_line(
1050 tabs_to_spaces(
1051 self.rl_history.back(
1052 False, search=self.config.curtsies_right_arrow_completion
1053 )
1054 ),
1055 update_completion=False,
1056 reset_rl_history=False,
1057 )
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)

Callers 2

process_key_eventMethod · 0.95

Calls 5

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

Tested by 1