Fixes a simple bug where last saved contents were being returned instead of last tracked.
TWPZLEGDVH4YBYEPFIRD7ONZGJPAMLXLPZTIHHKTUFLU5XIS3X7AC
WFWTKCJNC4VSURSQWE5FXJGTEJJOCDMQ6LN2O6EW2DNOVT2ZUMRQC
pub fn tracked_contents(&self) -> String { self.contents.text.to_string()
pub fn tracked_contents(&self) -> String {
self.contents.text.to_string()
pub fn tracked_contents(&self) -> Option<&str> { let credits = self.credits.as_ref()?; Some(&credits.recorded_state.original_contents)
pub fn tracked_contents(&self) -> Option<&str> {
let credits = self.credits.as_ref()?;
Some(&credits.recorded_state.original_contents)
// TODO: quick diff untracked files
Some(open_file) => Ok(Some(open_file.tracked_contents())),
Some(open_file) => Ok(open_file.tracked_contents().map(str::to_string)),