mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Clip left when moving vertically
This commit is contained in:
parent
7a5f1b5446
commit
b14721fd7f
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user