aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/copy_mode.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-08-01 04:27:50 +0300
committerGitHub <noreply@github.com>2026-08-01 04:27:50 +0300
commitb76adc155d979705a353fd6dc87c702f9dfc6c22 (patch)
treef613254e0cfbfd2b4450a6a5f3ee7c0ba8136976 /src/app/input/copy_mode.rs
parent8d190eddda2c74afa3dc043f8ec8020ffd7b5a94 (diff)
fix(input): preserve native key lifecycle across routing (#2142)
refs #2077 Co-authored-by: Jonathan Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/app/input/copy_mode.rs')
-rw-r--r--src/app/input/copy_mode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/input/copy_mode.rs b/src/app/input/copy_mode.rs
index 6c967133..b744d2ce 100644
--- a/src/app/input/copy_mode.rs
+++ b/src/app/input/copy_mode.rs
@@ -16,7 +16,7 @@ impl App {
return;
}
self.state.update_dismissed = true;
- if self.state.is_prefix_key(key) {
+ if self.state.is_prefix_key(&key) {
self.state.mode = Mode::Prefix;
return;
}
@@ -80,7 +80,7 @@ impl AppState {
terminal_runtimes: &TerminalRuntimeRegistry,
key: TerminalKey,
) {
- if self.handle_copy_mode_search_prompt_key(terminal_runtimes, key) {
+ if self.handle_copy_mode_search_prompt_key(terminal_runtimes, key.clone()) {
return;
}
match key.code {