diff options
author | Blaž Hrastnik | 2021-05-10 08:37:04 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-05-10 08:37:04 +0000 |
commit | cd1754f7836955e08692395b8738c96ff78bc207 (patch) | |
tree | 945c7c0b159588297ea978ae8dc3fe6e9164c209 /helix-core | |
parent | e541a7563035e93f6b5ca13ddd0bf9aa347cf2c3 (diff) |
Fix runtime dir lookup.
Diffstat (limited to 'helix-core')
-rw-r--r-- | helix-core/src/syntax.rs | 5 |
1 files changed, 1 insertions, 4 deletions
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(); |