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

Method undo_block_stop

Lib/idlelib/undo.py:104–114  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

102 self.undoblock.bump_depth()
103
104 def undo_block_stop(self):
105 if self.undoblock.bump_depth(-1) == 0:
106 cmd = self.undoblock
107 self.undoblock = 0
108 if len(cmd) > 0:
109 if len(cmd) == 1:
110 # no need to wrap a single cmd
111 cmd = cmd.getcmd(0)
112 # this blk of cmds, or single cmd, has already
113 # been done, so don't execute it again
114 self.addcmd(cmd, 0)
115
116 def addcmd(self, cmd, execute=True):
117 if execute:

Callers 10

recallMethod · 0.45
set_regionMethod · 0.45
do_rstripMethod · 0.45
replace_allMethod · 0.45
do_replaceMethod · 0.45
smart_backspace_eventMethod · 0.45
smart_indent_eventMethod · 0.45
reindent_toMethod · 0.45

Calls 3

addcmdMethod · 0.95
bump_depthMethod · 0.80
getcmdMethod · 0.80

Tested by

no test coverage detected