(state: &mut EditorState)
| 185 | state.log = format!("undo\n{} left", state.scene_undo_stack.len()); |
| 186 | true |
| 187 | } |
| 188 | |
| 189 | pub fn redo_scene_doc(state: &mut EditorState) -> bool { |
| 190 | let Some(next) = state.scene_redo_stack.pop() else { |
| 191 | state.log = "redo\nempty".to_string(); |
| 192 | return false; |
| 193 | }; |
| 194 | push_scene_undo_snapshot(state); |
| 195 | state.doc_text = next; |
| 196 | let _ = cached_scene_doc_shared(&state.doc_text); |
no test coverage detected