From cd1754f7836955e08692395b8738c96ff78bc207 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 10 May 2021 17:37:04 +0900 Subject: Fix runtime dir lookup. --- helix-core/src/syntax.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'helix-core') diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs index aaf22edc..06f3399e 100644 --- a/helix-core/src/syntax.rs +++ b/helix-core/src/syntax.rs @@ -66,10 +66,7 @@ fn read_query(language: &str, filename: &str) -> String { let root = crate::runtime_dir(); // let root = PathBuf::from(env!("CARGO_MANIFEST_DIR")); - let path = root - .join("../runtime/queries") - .join(language) - .join(filename); + let path = root.join("queries").join(language).join(filename); let query = std::fs::read_to_string(&path).unwrap_or_default(); -- cgit v1.2.3-70-g09d2