From 5f1d0b8850bc0fe9db222cded2529d11b4c3a0ae Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Fri, 7 May 2021 14:38:21 +0200 Subject: [PATCH] :lipstick: --- zed/src/editor/buffer/selection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zed/src/editor/buffer/selection.rs b/zed/src/editor/buffer/selection.rs index dd8ea1ea2f7031481afef4a2525e0d78adfaaffb..8f436a04e7a4929c6a542c10e5df6d8086e0d10c 100644 --- a/zed/src/editor/buffer/selection.rs +++ b/zed/src/editor/buffer/selection.rs @@ -75,7 +75,7 @@ impl Selection { pub fn buffer_rows_for_display_rows( &self, - expand_if_ends_at_line_start: bool, + include_end_if_at_line_start: bool, map: &DisplayMap, ctx: &AppContext, ) -> (Range, Range) { @@ -85,7 +85,7 @@ impl Selection { .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_start.row() != display_end.row() && display_end.column() == 0