We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8ced5b commit a1648daCopy full SHA for a1648da
lua/treewalker/targets.lua
@@ -12,16 +12,6 @@ function M.out(node)
12
return markdown_targets.out()
13
end
14
15
- -- In case we're in a comment, we want to behave as though we were in the
16
- -- node below the comment
17
- -- Note: For some reason, this isn't required locally (macos _or_ Makefile ubuntu,
18
- -- but does fail on CI. TODO figure out the differences)
19
- while node and (nodes.is_comment_node(node) or nodes.is_augment_target(node)) do
20
- local parent = node:parent()
21
- if not parent then break end
22
- node = parent
23
- end
24
-
25
local candidate = strategies.get_first_ancestor_with_diff_scol(node)
26
if not candidate then return end
27
local row = nodes.get_srow(candidate)
0 commit comments