Skip to content

Commit

Permalink
Merge pull request #1078 from vigoux/fix/panic-empty-path
Browse files Browse the repository at this point in the history
fix: avoid panic when drive path is empty
  • Loading branch information
pfoerster authored Apr 15, 2024
2 parents f38cb9f + 52dbd6f commit 76837fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/texlab/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn normalize_uri(uri: &mut lsp_types::Url) {
}

fn fix_drive_letter(text: &str) -> Option<String> {
if !text.is_ascii() {
if !text.is_ascii() || text.len() == 0 {
return None;
}

Expand Down

0 comments on commit 76837fe

Please sign in to comment.