Skip to content

Commit 74c9ffe

Browse files
committed
But status: fix display issue
1 parent c2a8f26 commit 74c9ffe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/but/src/status/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ pub fn print_group(
113113
}
114114
println!("│ {id} {path} {status} {locks}");
115115
}
116-
if !assignments.is_empty() {
116+
if group.is_some() && !assignments.is_empty() {
117117
println!("│");
118118
}
119119
let commits = match &group {
@@ -159,7 +159,7 @@ pub fn print_group(
159159
}
160160
}
161161
}
162-
if commits.is_empty() {
162+
if group.is_some() && commits.is_empty() {
163163
println!("│ {}", "(no commits)".dimmed().italic());
164164
}
165165
println!("┊");

0 commit comments

Comments
 (0)