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.
2 parents ca93d5b + 2aa5c9f commit c43c272Copy full SHA for c43c272
crates/pgt_treesitter/src/context/mod.rs
@@ -246,7 +246,7 @@ impl<'a> TreesitterContext<'a> {
246
pub fn get_node_under_cursor_content(&self) -> Option<String> {
247
self.node_under_cursor
248
.as_ref()
249
- .and_then(|n| self.get_ts_node_content(n))
+ .and_then(|node| self.get_ts_node_content(node))
250
}
251
252
fn gather_tree_context(&mut self) {
0 commit comments