From a1ed1a00b39d55ded92c88c67694aa2fc1035ddc Mon Sep 17 00:00:00 2001 From: Ben Kunkle Date: Thu, 6 Feb 2025 18:43:30 -0600 Subject: [PATCH] Fix issue with Vim test instead of cheating (#24411) Appears this test was failing, and someone edited the expected test output instead of fixing it. Well no longer! Release Notes: - N/A Co-authored-by: Conrad --- crates/vim/src/command.rs | 3 ++- crates/vim/test_data/test_command_replace.json | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/vim/src/command.rs b/crates/vim/src/command.rs index bc1b4ba201..f73734d0e2 100644 --- a/crates/vim/src/command.rs +++ b/crates/vim/src/command.rs @@ -1517,7 +1517,8 @@ mod test { dd dd ˇcc"}); - cx.simulate_shared_keystrokes("k : s / dd / ee enter").await; + cx.simulate_shared_keystrokes("k : s / d d / e e enter") + .await; cx.shared_state().await.assert_eq(indoc! {" aa dd diff --git a/crates/vim/test_data/test_command_replace.json b/crates/vim/test_data/test_command_replace.json index 698ef2a3bf..d14a8a78ce 100644 --- a/crates/vim/test_data/test_command_replace.json +++ b/crates/vim/test_data/test_command_replace.json @@ -24,8 +24,10 @@ {"Key":":"} {"Key":"s"} {"Key":"/"} -{"Key":"dd"} +{"Key":"d"} +{"Key":"d"} {"Key":"/"} -{"Key":"ee"} +{"Key":"e"} +{"Key":"e"} {"Key":"enter"} -{"Get":{"state":"aa\ndd\nˇee\ncc", "mode":"Normal"}} \ No newline at end of file +{"Get":{"state":"aa\ndd\nˇee\ncc","mode":"Normal"}}