mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-09 20:04:25 +00:00
fmt
This commit is contained in:
parent
0711476fd5
commit
9a7d2e3fe4
1 changed files with 2 additions and 4 deletions
|
@ -206,10 +206,8 @@ pub fn visual_block_motion(
|
||||||
row,
|
row,
|
||||||
laid_out_line.closest_index_for_x(positions.start) as u32,
|
laid_out_line.closest_index_for_x(positions.start) as u32,
|
||||||
);
|
);
|
||||||
let mut end = DisplayPoint::new(
|
let mut end =
|
||||||
row,
|
DisplayPoint::new(row, laid_out_line.closest_index_for_x(positions.end) as u32);
|
||||||
laid_out_line.closest_index_for_x(positions.end) as u32,
|
|
||||||
);
|
|
||||||
if end <= start {
|
if end <= start {
|
||||||
if start.column() == map.line_len(start.row()) {
|
if start.column() == map.line_len(start.row()) {
|
||||||
end = start;
|
end = start;
|
||||||
|
|
Loading…
Reference in a new issue