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

Method undo

Lib/idlelib/undo.py:292–297  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

290 ##sys.__stderr__.write("redo: %s\n" % self)
291
292 def undo(self, text):
293 text.mark_set('insert', self.index1)
294 text.insert(self.index1, self.chars)
295 self.set_marks(text, self.marks_before)
296 text.see('insert')
297 ##sys.__stderr__.write("undo: %s\n" % self)
298
299
300class CommandSequence(Command):

Callers

nothing calls this directly

Calls 4

set_marksMethod · 0.80
mark_setMethod · 0.45
insertMethod · 0.45
seeMethod · 0.45

Tested by

no test coverage detected