Push selections down correctly when moving a line down

This commit is contained in:
Antonio Scandurra
2021-05-03 14:49:35 +02:00
parent 8cd451f3ca
commit 76b454d34b
2 changed files with 60 additions and 35 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ impl Selection {
.unwrap();
let mut display_end = self.end.to_display_point(map, ctx).unwrap();
if display_end != map.max_point(ctx)
if display_end.row() != map.max_point(ctx).row()
&& display_start.row() != display_end.row()
&& display_end.column() == 0
{