Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix broken test due to trimmed trailing whitespace during formatting

Nathan Sobo95eb918b4c04
diff --git a/crates/vim/src/visual.rs b/crates/vim/src/visual.rs
index 80ddae69be9..cd4f956df10 100644
--- a/crates/vim/src/visual.rs
+++ b/crates/vim/src/visual.rs
@@ -646,11 +646,12 @@ mod test {
);
cx.simulate_keystroke("p");
cx.assert_state(
- indoc! {"
+ &indoc! {"
The quick brown
- the
+ the_
ˇfox jumps over
- dog"},
+ dog"}
+ .replace("_", " "), // Hack for trailing whitespace
Mode::Normal,
);
}