MCPcopy Index your code
hub / github.com/python/cpython / do

Method do

Lib/_pyrepl/historical_reader.py:170–177  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

168
169class isearch_add_character(commands.Command):
170 def do(self) -> None:
171 r = self.reader
172 b = r.buffer
173 r.isearch_term += self.event[-1]
174 r.dirty = True
175 p = r.pos + len(r.isearch_term) - 1
176 if b[p : p + 1] != [r.isearch_term[-1]]:
177 r.isearch_next()
178
179
180class isearch_backspace(commands.Command):

Callers

nothing calls this directly

Calls 1

isearch_nextMethod · 0.80

Tested by

no test coverage detected