diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-08-19 04:43:28 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-19 04:43:28 +0300 |
| commit | a5c69beabfc82d9c3f9563eb821139b2e0f3e14f (patch) | |
| tree | 9b7049e4629913dcab40d985df399acee262b67b /src/app/api_helpers.rs | |
| parent | 3667151744e379ac5c8f76d57203b675de8a6ebc (diff) | |
fix(perf): eliminate redundant terminal wake work (#2962)
* fix(perf): eliminate redundant terminal wake work
* fix(perf): harden release benchmark gate
* test(perf): strengthen performance guardrails
Diffstat (limited to 'src/app/api_helpers.rs')
| -rw-r--r-- | src/app/api_helpers.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/app/api_helpers.rs b/src/app/api_helpers.rs index 95224b9f..a224938d 100644 --- a/src/app/api_helpers.rs +++ b/src/app/api_helpers.rs @@ -23,10 +23,7 @@ fn normalize_api_key_alias(key: &str) -> &str { } pub(super) fn encode_api_text(runtime: &crate::terminal::TerminalRuntime, text: &str) -> Vec<u8> { - let bracketed = runtime - .input_state() - .map(|state| state.bracketed_paste) - .unwrap_or(false); + let bracketed = runtime.bracketed_paste_enabled(); if bracketed { format!("\x1b[200~{text}\x1b[201~").into_bytes() } else { |
