Compare commits
No commits in common. "c7cca545b9ceaf0a66885544caf020ecb63e66c5" and "1eb6a773e5a0369bcdd38cdc4cf94077156d9753" have entirely different histories.
c7cca545b9
...
1eb6a773e5
1 changed files with 7 additions and 11 deletions
|
@ -2083,9 +2083,7 @@ pub const Editor = struct {
|
|||
}
|
||||
|
||||
fn move_cursor_up(root: Buffer.Root, cursor: *Cursor, metrics: Buffer.Metrics) !void {
|
||||
cursor.move_up(root, metrics) catch |e| switch (e) {
|
||||
error.Stop => cursor.move_begin(),
|
||||
};
|
||||
try cursor.move_up(root, metrics);
|
||||
}
|
||||
|
||||
fn move_cursor_up_vim(root: Buffer.Root, cursor: *Cursor, metrics: Buffer.Metrics) !void {
|
||||
|
@ -2094,9 +2092,7 @@ pub const Editor = struct {
|
|||
}
|
||||
|
||||
fn move_cursor_down(root: Buffer.Root, cursor: *Cursor, metrics: Buffer.Metrics) !void {
|
||||
cursor.move_down(root, metrics) catch |e| switch (e) {
|
||||
error.Stop => cursor.move_end(root, metrics),
|
||||
};
|
||||
try cursor.move_down(root, metrics);
|
||||
}
|
||||
|
||||
fn move_cursor_down_vim(root: Buffer.Root, cursor: *Cursor, metrics: Buffer.Metrics) !void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue