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

Class right

Lib/_pyrepl/commands.py:322–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320
321
322class right(MotionCommand):
323 def do(self) -> None:
324 r = self.reader
325 b = r.buffer
326 for _ in range(r.get_arg()):
327 p = r.pos + 1
328 if p <= len(b):
329 r.pos = p
330 else:
331 self.reader.error("end of buffer")
332
333
334class beginning_of_line(MotionCommand):

Callers 6

demo1Function · 0.85
rFunction · 0.85
mainFunction · 0.85
yinFunction · 0.85
jumpFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…