ohhhhhhhh right backslashes on windows, shit

main
Jordan Orelli 6 months ago
parent fd730452ca
commit 17d51617e0

@ -214,19 +214,19 @@ pub enum ExpandError {
fn expand(text: &str) -> Result<String, ExpandError> { fn expand(text: &str) -> Result<String, ExpandError> {
let chars = text.chars(); let chars = text.chars();
let mut escape = false; // let mut escape = false;
let mut s = String::new(); let mut s = String::new();
for c in chars { for c in chars {
if !escape && c == '\\' { // if !escape && c == '\\' {
escape = true; // escape = true;
continue; // continue;
} // }
if escape { // if escape {
s.push(c); // s.push(c);
escape = false; // escape = false;
continue; // continue;
} // }
if c == '~' { if c == '~' {
let p = home_dir()?; let p = home_dir()?;

Loading…
Cancel
Save