mirror of
https://github.com/openai/codex.git
synced 2026-11-13 14:46:14 +00:00
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:
1 parent
4d7a5c7c73
commit
54994582b1
2 files changed
+4
-4
No files matched your search
@@ -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,
|
||||
)?;
|
||||
|
||||
Reference in new issue
Block a user