(self)
| 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: |
no test coverage detected