aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorSkyler Hawthorne2022-01-18 00:04:40 +0000
committerSkyler Hawthorne2022-06-19 03:54:03 +0000
commit502d3290fb88d8a871b0824adc7987a98104933d (patch)
tree5348192b2237e97f3bc0068503279760e8c187f5 /helix-view
parent308cab3e5cd5e8d5a8c37498e725f51ab101a908 (diff)
improve test harness
* Use new macro syntax for encoding sequences of keys * Make convenience helpers for common test pattern * Use indoc for inline indented raw strings * Add feature flag for integration testing to disable rendering
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/editor.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index ac19def1..76ac0b51 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -769,6 +769,7 @@ impl Editor {
Ok(self.new_file_from_document(action, Document::from(rope, Some(encoding))))
}
+ // ???
pub fn open(&mut self, path: PathBuf, action: Action) -> Result<DocumentId, Error> {
let path = helix_core::path::get_canonicalized_path(&path)?;
let id = self.document_by_path(&path).map(|doc| doc.id);