diff options
author | Jonas Frei <freijon@pm.me> | 2022-09-04 06:13:27 +0200 |
---|---|---|
committer | Jonas Frei <freijon@pm.me> | 2022-09-04 06:13:27 +0200 |
commit | e56d0e1ef7c064ae0f2fd2b640008e6466a6c81e (patch) | |
tree | c8e5391254b2c754c25c5629159f7881bdd42a52 /app-editors | |
parent | net-im/discord-canary-bin: Bump version to 0.0.137 (diff) | |
download | guru-e56d0e1ef7c064ae0f2fd2b640008e6466a6c81e.tar.gz guru-e56d0e1ef7c064ae0f2fd2b640008e6466a6c81e.tar.bz2 guru-e56d0e1ef7c064ae0f2fd2b640008e6466a6c81e.zip |
app-editors/helix: Removed helix-0.4.1.patch
Signed-off-by: Jonas Frei <freijon@pm.me>
Diffstat (limited to 'app-editors')
-rw-r--r-- | app-editors/helix/files/helix-0.4.1.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/app-editors/helix/files/helix-0.4.1.patch b/app-editors/helix/files/helix-0.4.1.patch deleted file mode 100644 index 259720ba4..000000000 --- a/app-editors/helix/files/helix-0.4.1.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 8c6e60e59c1c99341492d79608388f6cf12c9d40 Mon Sep 17 00:00:00 2001 -From: QaidVoid <qaidvoid@gmail.com> -Date: Tue, 19 Oct 2021 00:33:57 +0545 -Subject: [PATCH] check helix runtime in /usr/share - ---- - helix-core/src/lib.rs | 14 ++++++++++++++ - 1 file changed, 14 insertions(+) - -diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs -index 2823959..60c3bb7 100644 ---- a/helix-core/src/lib.rs -+++ b/helix-core/src/lib.rs -@@ -69,6 +69,11 @@ pub fn runtime_dir() -> std::path::PathBuf { - return conf_dir; - } - -+ let sys_dir = sys_share_dir().join(RT_DIR); -+ if sys_dir.exists() { -+ return sys_dir; -+ } -+ - if let Ok(dir) = std::env::var("CARGO_MANIFEST_DIR") { - // this is the directory of the crate being run by cargo, we need the workspace path so we take the parent - return std::path::PathBuf::from(dir).parent().unwrap().join(RT_DIR); -@@ -81,6 +86,15 @@ pub fn runtime_dir() -> std::path::PathBuf { - .unwrap() - } - -+pub fn sys_share_dir() -> std::path::PathBuf { -+ let mut path = std::path::Path::new("/usr/share/").to_path_buf(); -+ if !path.exists() { -+ panic!("Unable to find system share directory!"); -+ } -+ path.push("helix"); -+ path -+} -+ - pub fn config_dir() -> std::path::PathBuf { - // TODO: allow env var override - let strategy = choose_base_strategy().expect("Unable to find the config directory!"); --- -2.33.1 - |