Avoid cloning buffered TUI history lines (#34204)

## What changed

Make the hyperlink-aware history insertion helper accept a slice and borrow
pending history batches when flushing them. This avoids cloning each batch's
entire `Vec<HyperlinkLine>` before insertion.

GitOrigin-RevId: 0bc86c33e2f047c62de60b7642899c4aaa4bb6b8
This commit is contained in:
Charlie Marsh authored and copyberry committed 2026-07-19 17:32:53 +00:00
1 parent 4d7a5c7c73
commit 54994582b1
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -883,7 +883,7 @@ impl Tui {
};
crate::insert_history::insert_history_hyperlink_lines_with_mode_and_wrap_policy(
terminal,
batch.lines.clone(),
&batch.lines,
mode,
batch.wrap_policy,
)?;