From a971d5f56ee8e034c2d313af7e375ab9a30d1c36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20L=C3=BCbbemeier?= Date: Wed, 14 Mar 2018 20:36:00 +0100 Subject: [PATCH] Don't canonicalize cwd path for dir list --- src/file_browser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_browser.rs b/src/file_browser.rs index 04f0f8b..660d21d 100644 --- a/src/file_browser.rs +++ b/src/file_browser.rs @@ -357,7 +357,7 @@ fn tree_reload(store: >k::TreeStore, state: &State) { /// replaced with the new path and the last entry is marked active. fn update_dir_list(dir: &str, dir_list_model: >k::TreeStore, dir_list: >k::ComboBox) { // The current working directory path. - let complete_path = Path::new(dir).canonicalize().unwrap(); + let complete_path = Path::new(dir); let mut path = PathBuf::new(); let mut components = complete_path.components(); let mut next = components.next();