Clip left when moving vertically

This commit is contained in:
Nathan Sobo 2021-07-27 16:50:06 -06:00 committed by Max Brunsfeld
parent 7a5f1b5446
commit b14721fd7f

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(