Skip to content

Commit fc832d7

Browse files
authored
Merge pull request #818 from Rudxain/tilde-fix
fix(config): proper tilde expansion
2 parents df7a12d + 728a722 commit fc832d7

File tree

1 file changed

+1
-1
lines changed
  • crates/emmylua_code_analysis/src/config

1 file changed

+1
-1
lines changed

crates/emmylua_code_analysis/src/config/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ fn pre_process_path(path: &str, workspace: &Path) -> String {
149149
return path;
150150
}
151151
};
152-
path = home_dir.join(&path[1..]).to_string_lossy().to_string();
152+
path = home_dir.join(&path[2..]).to_string_lossy().to_string();
153153
} else if path.starts_with("./") {
154154
path = workspace.join(&path[2..]).to_string_lossy().to_string();
155155
} else if PathBuf::from(&path).is_absolute() {

0 commit comments

Comments
 (0)