fix: some minor typos
This commit is contained in:
parent
4f68e692d1
commit
335f1bedab
2 changed files with 3 additions and 3 deletions
|
|
@ -63,8 +63,8 @@ fn select(menu: **Type.MenuType, button: *Type.ButtonType, _: Type.Pos) void {
|
||||||
cbor.skipValue(&iter) catch break;
|
cbor.skipValue(&iter) catch break;
|
||||||
if (!(cbor.matchValue(&iter, cbor.extract(&command_id)) catch false)) return;
|
if (!(cbor.matchValue(&iter, cbor.extract(&command_id)) catch false)) return;
|
||||||
update_used_time(menu.*.opts.ctx, command_id);
|
update_used_time(menu.*.opts.ctx, command_id);
|
||||||
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err("navigate", e);
|
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err("command_palette", e);
|
||||||
tp.self_pid().send(.{ "cmd", command_id, .{} }) catch |e| menu.*.opts.ctx.logger.err("navigate", e);
|
tp.self_pid().send(.{ "cmd", command_id, .{} }) catch |e| menu.*.opts.ctx.logger.err("command_palette", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn sort_by_used_time(palette: *Type) void {
|
fn sort_by_used_time(palette: *Type) void {
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,6 @@ fn select(menu: **Type.MenuType, button: *Type.ButtonType, _: Type.Pos) void {
|
||||||
while (len > 0) : (len -= 1)
|
while (len > 0) : (len -= 1)
|
||||||
cbor.skipValue(&iter) catch break;
|
cbor.skipValue(&iter) catch break;
|
||||||
if (!(cbor.matchValue(&iter, cbor.extract(&command_id)) catch false)) return;
|
if (!(cbor.matchValue(&iter, cbor.extract(&command_id)) catch false)) return;
|
||||||
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err("navigate", e);
|
tp.self_pid().send(.{ "cmd", "exit_overlay_mode" }) catch |e| menu.*.opts.ctx.logger.err("command_palette", e);
|
||||||
tp.self_pid().send(.{ "cmd", "paste", .{command.get_name(command_id) orelse return} }) catch {};
|
tp.self_pid().send(.{ "cmd", "paste", .{command.get_name(command_id) orelse return} }) catch {};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue