From 3c5dfb0633e5e5b64c78cb1c2e96291ef23e08d0 Mon Sep 17 00:00:00 2001 From: Jakub Bartodziej Date: Thu, 3 Jun 2021 09:44:16 -0400 Subject: Improve on the fix for deleting from the end of the buffer. --- helix-view/src/document.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'helix-view/src') diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index c41b78ad..3a3b9390 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -494,10 +494,6 @@ impl Document { pub fn versioned_identifier(&self) -> lsp::VersionedTextDocumentIdentifier { lsp::VersionedTextDocumentIdentifier::new(self.url().unwrap(), self.version) } - - pub fn empty(&self) -> bool { - self.text == "\n" - } } #[cfg(test)] -- cgit v1.2.3-70-g09d2