fix(editor): stop render clock running endlessly on restore

This commit is contained in:
CJ van den Berg 2024-06-18 20:04:19 +02:00
parent 25556336b9
commit 86b91dc0de

View file

@ -298,6 +298,7 @@ pub const Editor = struct {
self.last_find_query = if (query.len > 0) try self.a.dupe(u8, clipboard) else null;
if (!try self.view.extract(&view_cbor))
return error.RestoreView;
self.scroll_dest = self.view.row;
if (!try self.get_primary().cursor.extract(&primary_cbor))
return error.RestoreCursor;
var len = cbor.decodeArrayHeader(&find_history) catch return error.RestoryFindHistory;