From f0eb6ed96a6e61ee6abe3aa14071cfc003d0b37f Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 8 Aug 2021 13:50:03 +0900 Subject: Resolve a couple TODOs --- helix-view/src/document.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'helix-view') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 4ad08ce9..99faebec 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -520,13 +520,12 @@ impl Document { // state without blocking any further edits. let mut text = self.text().clone(); - let path = self.path.clone().expect("Can't save with no path set!"); // TODO: handle no path + let path = self.path.clone().expect("Can't save with no path set!"); let identifier = self.identifier(); - // TODO: mark changes up to now as saved - let language_server = self.language_server.clone(); + // mark changes up to now as saved self.reset_modified(); let encoding = self.encoding; -- cgit v1.2.3-70-g09d2