Skip over block lines when building columnar selections
This commit is contained in:
parent
3a9b69077e
commit
a7186c643f
1 changed files with 1 additions and 1 deletions
|
@ -927,7 +927,7 @@ impl Editor {
|
||||||
|
|
||||||
let selections = (start_row..=end_row)
|
let selections = (start_row..=end_row)
|
||||||
.filter_map(|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
|
let start = display_map
|
||||||
.clip_point(DisplayPoint::new(row, start_column), Bias::Left)
|
.clip_point(DisplayPoint::new(row, start_column), Bias::Left)
|
||||||
.to_point(&display_map);
|
.to_point(&display_map);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue