Skip to content

Commit a1648da

Browse files
committed
Simplified fix - minimal changes (Sun Nov 30 21:49:33 PST 2025)
1 parent c8ced5b commit a1648da

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lua/treewalker/targets.lua

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ function M.out(node)
1212
return markdown_targets.out()
1313
end
1414

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-
2515
local candidate = strategies.get_first_ancestor_with_diff_scol(node)
2616
if not candidate then return end
2717
local row = nodes.get_srow(candidate)

0 commit comments

Comments
 (0)