From 390a56714ae20aaf4227020f2e78d68aada3fb2f Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 9 Apr 2024 22:27:33 +0200 Subject: [PATCH] fix: incorrect offset on goto mode cancel --- src/tui/mode/mini/goto.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tui/mode/mini/goto.zig b/src/tui/mode/mini/goto.zig index 4bb1dbc..77ab070 100644 --- a/src/tui/mode/mini/goto.zig +++ b/src/tui/mode/mini/goto.zig @@ -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| { self.* = .{ .a = a, - .start = editor.get_primary().cursor.row, + .start = editor.get_primary().cursor.row + 1, }; return self; };