mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
💄
This commit is contained in:
parent
4797ccfdcd
commit
5f1d0b8850
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ impl Selection {
|
||||||
|
|
||||||
pub fn buffer_rows_for_display_rows(
|
pub fn buffer_rows_for_display_rows(
|
||||||
&self,
|
&self,
|
||||||
expand_if_ends_at_line_start: bool,
|
include_end_if_at_line_start: bool,
|
||||||
map: &DisplayMap,
|
map: &DisplayMap,
|
||||||
ctx: &AppContext,
|
ctx: &AppContext,
|
||||||
) -> (Range<u32>, Range<u32>) {
|
) -> (Range<u32>, Range<u32>) {
|
||||||
|
@ -85,7 +85,7 @@ impl Selection {
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let mut display_end = self.end.to_display_point(map, ctx).unwrap();
|
let mut display_end = self.end.to_display_point(map, ctx).unwrap();
|
||||||
if !expand_if_ends_at_line_start
|
if !include_end_if_at_line_start
|
||||||
&& display_end.row() != map.max_point(ctx).row()
|
&& display_end.row() != map.max_point(ctx).row()
|
||||||
&& display_start.row() != display_end.row()
|
&& display_start.row() != display_end.row()
|
||||||
&& display_end.column() == 0
|
&& display_end.column() == 0
|
||||||
|
|
Loading…
Reference in a new issue