A simple CPU rendered GUI IDE experience.
dont push every save
bendn 7 days ago
parent 0ce3a6a · commit b8f37cd
-rw-r--r--src/edi.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/edi.rs b/src/edi.rs
index ab25fec..0777b21 100644
--- a/src/edi.rs
+++ b/src/edi.rs
@@ -377,7 +377,7 @@ impl Editor {
// self.text.cursor =
// self.text.cursor.min(self.text.rope.len_chars());
change!(self);
- self.hist.push(&mut self.text);
+ self.hist.push_if_changed(&mut self.text);
l.notify::<lsp_notification!("textDocument/didSave")>(
&DidSaveTextDocumentParams {
text_document: o.tid(),