mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-28 11:29:25 +00:00
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)
|
||||
.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);
|
||||
|
|
Loading…
Reference in a new issue