vim: Add global marks (#25702)
Closes https://github.com/zed-industries/zed/issues/13111 Release Notes: - vim: Added global marks `'[A-Z]` - vim: Added persistence for global (and local) marks. When re-opening the same workspace your previous marks will be available. --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
@@ -1889,7 +1889,7 @@ pub(crate) fn end_of_line(
|
||||
}
|
||||
}
|
||||
|
||||
fn sentence_backwards(
|
||||
pub(crate) fn sentence_backwards(
|
||||
map: &DisplaySnapshot,
|
||||
point: DisplayPoint,
|
||||
mut times: usize,
|
||||
@@ -1935,7 +1935,11 @@ fn sentence_backwards(
|
||||
DisplayPoint::zero()
|
||||
}
|
||||
|
||||
fn sentence_forwards(map: &DisplaySnapshot, point: DisplayPoint, mut times: usize) -> DisplayPoint {
|
||||
pub(crate) fn sentence_forwards(
|
||||
map: &DisplaySnapshot,
|
||||
point: DisplayPoint,
|
||||
mut times: usize,
|
||||
) -> DisplayPoint {
|
||||
let start = point.to_point(map).to_offset(&map.buffer_snapshot);
|
||||
let mut chars = map.buffer_chars_at(start).peekable();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user