mirror of
https://github.com/zed-industries/zed.git
synced 2024-10-27 00:41:37 +00:00
Clip right when moving to next word in case we land on a block line
This commit is contained in:
parent
ed361f2d1a
commit
2b31a48ef9
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ pub fn next_word_boundary(map: &DisplaySnapshot, mut point: DisplayPoint) -> Dis
|
||||||
}
|
}
|
||||||
prev_char_kind = Some(char_kind);
|
prev_char_kind = Some(char_kind);
|
||||||
}
|
}
|
||||||
point
|
map.clip_point(point, Bias::Right)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_inside_word(map: &DisplaySnapshot, point: DisplayPoint) -> bool {
|
pub fn is_inside_word(map: &DisplaySnapshot, point: DisplayPoint) -> bool {
|
||||||
|
|
Loading…
Reference in a new issue