Skip over block lines when building columnar selections

This commit is contained in:
Antonio Scandurra 2021-11-24 10:40:06 +01:00
parent 3a9b69077e
commit a7186c643f

View file

@ -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);