()
| 2197 | } |
| 2198 | } |
| 2199 | function undo() { |
| 2200 | if (undos.length < 1) { return false; } |
| 2201 | |
| 2202 | redos.push(current_history_node); |
| 2203 | let target_history_node = undos.pop(); |
| 2204 | |
| 2205 | while (target_history_node.soft && undos.length) { |
| 2206 | redos.push(target_history_node); |
| 2207 | target_history_node = undos.pop(); |
| 2208 | } |
| 2209 | |
| 2210 | go_to_history_node(target_history_node); |
| 2211 | |
| 2212 | return true; |
| 2213 | } |
| 2214 | |
| 2215 | // @TODO: use Clippy.js instead for potentially annoying tips |
| 2216 | /** @type {OSGUI$Window} */ |
no test coverage detected