refactor: make more selection function infallible
This commit is contained in:
parent
5ffd34680e
commit
5d8c44ba76
2 changed files with 14 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue