Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
style(agent-tui): keep the moved paint loop in its original style
thinhlpgbdc059338c33
diff --git a/src-tauri/src/core/cli/tui/find.rs b/src-tauri/src/core/cli/tui/find.rsindex ea73e7197..9622880b7 100644--- a/src-tauri/src/core/cli/tui/find.rs+++ b/src-tauri/src/core/cli/tui/find.rs@@ -283,20 +283,13 @@ pub(super) fn highlight_ranges(if r.start >= end || r.end <= start {continue;}- let paint = if *current {- current_style()- } else {- match_style()- };+ let paint = if *current { current_style() } else { match_style() };let (a, b) = (r.start.max(start).max(cut), r.end.min(end));if b <= a {continue;}if a > cut {- spans.push(Span::styled(- text[cut - start..a - start].to_string(),- span.style,- ));+ spans.push(Span::styled(text[cut - start..a - start].to_string(), span.style));}spans.push(Span::styled(text[a - start..b - start].to_string(),