Skip to content

Commit

Permalink
insertNode: exit all nested snippets, not just the first.
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 committed Mar 4, 2024
1 parent e0d1787 commit 595996e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/luasnip/nodes/insertNode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ function InsertNode:input_leave(_, dry_run)
end

function InsertNode:exit()
if self.inner_first then
self.inner_first:exit()
for _, snip in ipairs(self:child_snippets()) do
snip:exit()
end

-- reset runtime-acquired values.
Expand Down

0 comments on commit 595996e

Please sign in to comment.