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.

fmt

Mikayla9a7d2e3fe406
diff --git a/crates/vim/src/visual.rs b/crates/vim/src/visual.rs
index 0f29101d974..ad6486ab0c5 100644
--- a/crates/vim/src/visual.rs
+++ b/crates/vim/src/visual.rs
@@ -206,10 +206,8 @@ pub fn visual_block_motion(
row,
laid_out_line.closest_index_for_x(positions.start) as u32,
);
- let mut end = DisplayPoint::new(
- row,
- laid_out_line.closest_index_for_x(positions.end) as u32,
- );
+ let mut end =
+ DisplayPoint::new(row, laid_out_line.closest_index_for_x(positions.end) as u32);
if end <= start {
if start.column() == map.line_len(start.row()) {
end = start;