diff options
Diffstat (limited to 'helix-view/src/document.rs')
-rw-r--r-- | helix-view/src/document.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 75a0e9fa..e4475938 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -462,8 +462,7 @@ impl Document { let history = self.history.take(); let current_revision = history.current_revision(); self.history.set(history); - self.path.is_some() - && (current_revision != self.last_saved_revision || !self.changes.is_empty()) + current_revision != self.last_saved_revision || !self.changes.is_empty() } #[inline] |