refactor: make more selection function infallible

This commit is contained in:
CJ van den Berg 2025-11-25 13:28:26 +01:00
parent 5ffd34680e
commit 5d8c44ba76
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 14 additions and 14 deletions

View file

@ -97,7 +97,7 @@ fn ast_at_point(self: *Self, syn: anytype, row: usize, col_pos: usize, root: Buf
}) catch return;
if (node.isNull()) return;
const sel = ed.CurSel.selection_from_node(node, root, self.editor.metrics) catch return;
const sel = ed.CurSel.selection_from_node(node, root, self.editor.metrics);
self.dump_ast_node(sel, &node);
}