(&mut self)
| 128 | } |
| 129 | |
| 130 | pub fn save_all(&mut self) -> Result<()> { |
| 131 | for file in &mut self.files { |
| 132 | if file.modified && file.path.is_some() { |
| 133 | let _ = file.save(); |
| 134 | } |
| 135 | } |
| 136 | Ok(()) |
| 137 | } |
| 138 | |
| 139 | pub fn undo(&mut self) { |
| 140 | if let Some(f) = self.files.get_mut(self.current_file) { |