aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/tests/workspace_navigation.rs
diff options
context:
space:
mode:
authorMark Jaquith <mark@jaquith.me>2026-09-14 15:47:53 -0400
committerGitHub <noreply@github.com>2026-09-14 21:47:53 +0200
commitb0f21ed2cb85613050b794bf6c78a7c367a94e0d (patch)
tree25c14e09338f5300bedbc8131aa23fab3d37add9 /src/client/shell/tests/workspace_navigation.rs
parentd8b36691d10c6055293ad45324b22af8b8f570e5 (diff)
feat: add cursor-based editing to text inputs (#3698)
* feat: add cursor-based editing to text inputs refs #1803 * fix: preserve dialog actions with associated text refs #1803 * refactor: simplify text editor outcomes and tests refs #1803 --------- Co-authored-by: JJ Liebig <jonathan.liebig@gmail.com>
Diffstat (limited to 'src/client/shell/tests/workspace_navigation.rs')
-rw-r--r--src/client/shell/tests/workspace_navigation.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/shell/tests/workspace_navigation.rs b/src/client/shell/tests/workspace_navigation.rs
index 3e19b87c..2a100957 100644
--- a/src/client/shell/tests/workspace_navigation.rs
+++ b/src/client/shell/tests/workspace_navigation.rs
@@ -223,11 +223,12 @@ fn foreign_workspace_preview_blocks_paste_into_hidden_copy_search() {
state.set_pane_surface(pane_surface);
state.compose(100, 28).unwrap();
assert!(state.enter_copy_mode(&mut ClientShellInput::default()));
+ enter_navigation(&mut state);
+ // Seed the hidden prompt after navigation: text editing consumes the prefix key.
state.copy_mode.as_mut().unwrap().search_prompt = Some(ClientCopySearchPrompt {
direction: crate::api::schema::PaneCopySearchDirection::Forward,
query: "original".into(),
});
- enter_navigation(&mut state);
preview_key(&mut state, b"\x1b[B");
assert!(state.workspace_preview_action_blocked());
assert!(!state.modal_paste_target_active());
@@ -241,7 +242,7 @@ fn foreign_workspace_preview_blocks_paste_into_hidden_copy_search() {
assert!(paste.actions.is_empty() && paste.requests.is_empty());
assert_eq!(
state.copy_mode.unwrap().search_prompt.unwrap().query,
- "original"
+ "original".into()
);
}