Skip to content

Commit 43b2d6d

Browse files
committed
Fix unintended change
1 parent 255f284 commit 43b2d6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/cmp/config/compare.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ compare.scopes = setmetatable({
243243
}, {
244244
---@type fun(self: table, entry1: cmp.Entry, entry2: cmp.Entry): boolean|nil
245245
__call = function(self, entry1, entry2)
246-
local def_depth1 = self.definition_depths[entry1.word]
247-
local def_depth2 = self.definition_depths[entry2.word]
246+
local def_depth1 = self.definition_depths[entry1.get_word()]
247+
local def_depth2 = self.definition_depths[entry2.get_word()]
248248
if def_depth1 ~= def_depth2 then
249249
if def_depth1 == nil then
250250
return false

0 commit comments

Comments
 (0)