aboutsummaryrefslogtreecommitdiff
path: root/src/platform/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/mod.rs')
-rw-r--r--src/platform/mod.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs
index 402b695d..4b49b9f7 100644
--- a/src/platform/mod.rs
+++ b/src/platform/mod.rs
@@ -43,6 +43,15 @@ pub(crate) fn prepare_paste_text_for_pty(text: String) -> String {
prepare_paste_text_for_pty_platform(text)
}
+pub(crate) fn plugin_runtime_path(path: &std::path::Path) -> std::path::PathBuf {
+ plugin_runtime_path_platform(path)
+}
+
+#[cfg(not(windows))]
+fn plugin_runtime_path_platform(path: &std::path::Path) -> std::path::PathBuf {
+ path.to_path_buf()
+}
+
#[cfg(not(windows))]
fn prepare_paste_text_for_pty_platform(text: String) -> String {
text