Skip to content

Commit

Permalink
Fix unintended change
Browse files Browse the repository at this point in the history
  • Loading branch information
pynappo committed Aug 9, 2024
1 parent 255f284 commit a6be39a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/cmp/config/compare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ compare.scopes = setmetatable({
}, {
---@type fun(self: table, entry1: cmp.Entry, entry2: cmp.Entry): boolean|nil
__call = function(self, entry1, entry2)
local def_depth1 = self.definition_depths[entry1.word]
local def_depth2 = self.definition_depths[entry2.word]
local def_depth1 = self.definition_depths[entry1:get_word()]
local def_depth2 = self.definition_depths[entry2:get_word()]
if def_depth1 ~= def_depth2 then
if def_depth1 == nil then
return false
Expand Down

0 comments on commit a6be39a

Please sign in to comment.