Skip to content

Commit

Permalink
Commit from GitHub Actions (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
mise-en-dev committed Sep 26, 2024
1 parent 1f8681f commit 57376e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,10 @@ fn prefer_stale(args: &[String]) -> bool {
.filter(|a| !a.starts_with('-'))
.nth(1)
.unwrap_or(&binding);
return [
[
"env", "hook-env", "x", "exec", "direnv", "activate", "current", "ls", "where",
]
.contains(&c.as_str());
.contains(&c.as_str())
}

fn environment(args: &[String]) -> Option<String> {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl TreeItemIndent {
characters: &TreeItemIndentChars,
) -> TreeItemIndent {
let m = 1 + padding;
let n = if indent_size > m { indent_size - m } else { 0 };
let n = indent_size.saturating_sub(m);

let right_pad = characters.right.repeat(n);
let empty_pad = characters.empty.repeat(n);
Expand Down

0 comments on commit 57376e5

Please sign in to comment.