Skip to content

Commit

Permalink
:|
Browse files Browse the repository at this point in the history
  • Loading branch information
L3MON4D3 committed Jul 12, 2023
1 parent 56d9997 commit 3fa6984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/luasnip/nodes/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ local function first_common_snippet_ancestor_path(a, b)
-- non-nil node in the first for-loop, as opposed to needing some special
-- handling).
local deeper, deeper_path, other, other_path
if b == nil or (a ~= nil and a_depth < b_depth) then
if b == nil or (a ~= nil and a_depth > b_depth) then
deeper = a
other = b
deeper_path = a_path
Expand Down

0 comments on commit 3fa6984

Please sign in to comment.