fix: incorrect offset on goto mode cancel

This commit is contained in:
CJ van den Berg 2024-04-09 22:27:33 +02:00
parent b3f2a8465d
commit 390a56714a

View file

@ -25,7 +25,7 @@ pub fn create(a: Allocator, _: command.Context) !*Self {
if (tui.current().mainview.dynamic_cast(mainview)) |mv_| if (mv_.get_editor()) |editor| { if (tui.current().mainview.dynamic_cast(mainview)) |mv_| if (mv_.get_editor()) |editor| {
self.* = .{ self.* = .{
.a = a, .a = a,
.start = editor.get_primary().cursor.row, .start = editor.get_primary().cursor.row + 1,
}; };
return self; return self;
}; };