Skip to content

Commit

Permalink
fixing shellwords
Browse files Browse the repository at this point in the history
  • Loading branch information
tdaron committed Jul 14, 2024
1 parent 0d97406 commit 726f874
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions helix-core/src/shellwords.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ impl<'a> From<&'a str> for Shellwords<'a> {
}
}
}
} else {
if c == '}' {
inside_variable_expansion = false;
}
} else if c == '}' {
inside_variable_expansion = false;
}

state = if !inside_variable_expansion {
Expand All @@ -95,7 +93,7 @@ impl<'a> From<&'a str> for Shellwords<'a> {
}
c if c.is_ascii_whitespace() => {
end = i;
Unquoted
OnWhitespace
}
_ => Unquoted,
},
Expand Down

0 comments on commit 726f874

Please sign in to comment.