From 28b256971a24695c7a54b790ebc68853161e4948 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 5 Dec 2024 20:23:25 +0100 Subject: [PATCH] fix: clamp cursor on restore_session --- src/tui/editor.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tui/editor.zig b/src/tui/editor.zig index 3ca7eb1..091852b 100644 --- a/src/tui/editor.zig +++ b/src/tui/editor.zig @@ -339,6 +339,7 @@ pub const Editor = struct { return error.RestoryFindHistory; self.push_find_history(value); } + self.clamp(); } fn init(self: *Self, allocator: Allocator, n: Plane) void {