fix: match offset in task_palette
This commit is contained in:
parent
7019d56142
commit
05a551b5b4
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ pub fn on_render_menu(palette: *Type, button: *Type.ButtonType, theme: *const Wi
|
||||||
var len = cbor.decodeArrayHeader(&iter) catch return false;
|
var len = cbor.decodeArrayHeader(&iter) catch return false;
|
||||||
while (len > 0) : (len -= 1) {
|
while (len > 0) : (len -= 1) {
|
||||||
if (cbor.matchValue(&iter, cbor.extract(&index)) catch break) {
|
if (cbor.matchValue(&iter, cbor.extract(&index)) catch break) {
|
||||||
tui.render_match_cell(&button.plane, 0, index + 1, theme) catch break;
|
tui.render_match_cell(&button.plane, 0, index + 2, theme) catch break;
|
||||||
} else break;
|
} else break;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue