We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0b3cc commit 8b6565cCopy full SHA for 8b6565c
helix-term/src/commands/typed.rs
@@ -1546,10 +1546,7 @@ fn tree_sitter_highlight_name(
1546
let text = doc.text().slice(..);
1547
let cursor = doc.selection(view.id).primary().cursor(text);
1548
let byte = text.char_to_byte(cursor);
1549
- let node = syntax
1550
- .tree()
1551
- .root_node()
1552
- .descendant_for_byte_range(byte, byte)?;
+ let node = syntax.descendant_for_byte_range(byte, byte)?;
1553
// Query the same range as the one used in syntax highlighting.
1554
let range = {
1555
// Calculate viewport byte ranges:
0 commit comments