fix: clamp cursor on restore_session

This commit is contained in:
CJ van den Berg 2024-12-05 20:23:25 +01:00
parent fff1a39fe5
commit 28b256971a
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -339,6 +339,7 @@ pub const Editor = struct {
return error.RestoryFindHistory; return error.RestoryFindHistory;
self.push_find_history(value); self.push_find_history(value);
} }
self.clamp();
} }
fn init(self: *Self, allocator: Allocator, n: Plane) void { fn init(self: *Self, allocator: Allocator, n: Plane) void {