Clip left when moving vertically

This commit is contained in:
Nathan Sobo
2021-07-30 09:50:28 -07:00
committed by Max Brunsfeld
parent 7a5f1b5446
commit b14721fd7f
+8 -2
View File
@@ -40,7 +40,10 @@ pub fn up(
point = DisplayPoint::new(0, 0);
}
Ok((point, SelectionGoal::Column(goal_column)))
Ok((
map.clip_point(point, Bias::Left),
SelectionGoal::Column(goal_column),
))
}
pub fn down(
@@ -62,7 +65,10 @@ pub fn down(
point = max_point;
}
Ok((point, SelectionGoal::Column(goal_column)))
Ok((
map.clip_point(point, Bias::Left),
SelectionGoal::Column(goal_column),
))
}
pub fn line_beginning(