fix: resolve SSH aliases for forge discovery

This commit is contained in:
Valdemar Lorenzen
2026-10-14 13:46:07 +02:00
parent af6496bd5a
commit 5243de66fe
3 changed files with 137 additions and 10 deletions
+2 -1
View File
@@ -2790,7 +2790,7 @@ fn draw_diff(
));
}
}
if lines.is_empty() && !diff.loading {
if lines.is_empty() && !diff.loading && diff.error.is_none() {
let empty = if pull_requests {
"No matching pull requests"
} else {
@@ -6751,6 +6751,7 @@ mod tests {
diff.apply_result(1, Err("offline".into()));
render_diff(&mut terminal, &diff, &mut panels);
assert!(screen_text(&terminal).contains("offline"));
assert!(!screen_text(&terminal).contains("No matching pull requests"));
diff.handle(Input::Enter);
diff.take_request();
diff.apply_result(