refactor: allow updating of completions

This commit is contained in:
CJ van den Berg 2026-01-29 20:59:49 +01:00
parent 725862a394
commit 94aa462a8d
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 70 additions and 20 deletions

View file

@ -43,7 +43,7 @@ pub fn load_entries(palette: *Type) !usize {
const editor = tui.get_active_editor() orelse return error.NotFound;
palette.value.start = editor.get_primary().*;
var iter: []const u8 = editor.completions.items;
var iter: []const u8 = editor.completions.data.items;
while (iter.len > 0) {
var cbor_item: []const u8 = undefined;
if (!try cbor.matchValue(&iter, cbor.extract_cbor(&cbor_item))) return error.BadCompletion;