Fix moving to previous word across a wrap boundary
I'm just going to the end of the soft-wrapped line, mirroring the behavior with hard wraps. It's maybe not perfectly technically correct but that behavior would require us to consider word boundaries outside of the current line, which doesn't seem worth the complexity.
This commit is contained in:
committed by
Max Brunsfeld
parent
25c472acd0
commit
e7d03af942
+1
-1
@@ -3423,7 +3423,7 @@ mod tests {
|
||||
view.move_to_previous_word_boundary(&(), cx);
|
||||
assert_eq!(
|
||||
view.selection_ranges(cx),
|
||||
&[DisplayPoint::new(1, 14)..DisplayPoint::new(1, 14)]
|
||||
&[DisplayPoint::new(1, 15)..DisplayPoint::new(1, 15)]
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user