Fix issue with Vim test instead of cheating (#24411)

Ben Kunkle and Conrad created

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 <conrad@zed.dev>

Change summary

crates/vim/src/command.rs                      | 3 ++-
crates/vim/test_data/test_command_replace.json | 8 +++++---
2 files changed, 7 insertions(+), 4 deletions(-)

Detailed changes

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

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"}}
+{"Get":{"state":"aa\ndd\nˇee\ncc","mode":"Normal"}}