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

Method on_control_d

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

Source from the content-addressed store, hash-verified

1024 return completion
1025
1026 def on_control_d(self):
1027 if self.current_line == "":
1028 raise SystemExit()
1029 else:
1030 self.current_line = (
1031 self.current_line[: self.cursor_offset]
1032 + self.current_line[(self.cursor_offset + 1) :]
1033 )
1034
1035 def cut_to_buffer(self):
1036 self.cut_buffer = self.current_line[self.cursor_offset :]

Callers 1

process_key_eventMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected