Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

style(agent-tui): leave pre-existing find.rs formatting alone

thinhlpgda896291e695
diff --git a/src-tauri/src/core/cli/tui/find.rs b/src-tauri/src/core/cli/tui/find.rs
index 7a58fdfad..ea73e7197 100644
--- a/src-tauri/src/core/cli/tui/find.rs
+++ b/src-tauri/src/core/cli/tui/find.rs
@@ -348,7 +348,11 @@ pub(super) fn nearest(hits: &[Hit], bottom_row: usize) -> Option<usize> {
if hits.is_empty() {
return None;
}
- Some(hits.iter().rposition(|h| h.row <= bottom_row).unwrap_or(0))
+ Some(
+ hits.iter()
+ .rposition(|h| h.row <= bottom_row)
+ .unwrap_or(0),
+ )
}
/// Index of the match after (`forward`) or before `from`, wrapping at either