refactor: allow updating of completions
This commit is contained in:
parent
725862a394
commit
94aa462a8d
4 changed files with 70 additions and 20 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue