From a7186c643f9ccd62669b0b0d917e046d367e3336 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Wed, 24 Nov 2021 10:40:06 +0100 Subject: [PATCH] Skip over block lines when building columnar selections --- crates/editor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/editor/src/lib.rs b/crates/editor/src/lib.rs index 7653517fad..056703f523 100644 --- a/crates/editor/src/lib.rs +++ b/crates/editor/src/lib.rs @@ -927,7 +927,7 @@ impl Editor { let selections = (start_row..=end_row) .filter_map(|row| { - if start_column <= display_map.line_len(row) { + if start_column <= display_map.line_len(row) && !display_map.is_block_line(row) { let start = display_map .clip_point(DisplayPoint::new(row, start_column), Bias::Left) .to_point(&display_map);