Skip to content

Commit

Permalink
Switch off of entry:get_word()
Browse files Browse the repository at this point in the history
  • Loading branch information
pynappo committed Oct 27, 2024
1 parent 51da174 commit 1e90708
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:get_word()]
local def_depth2 = self.definition_depths[entry2:get_word()]
local def_depth1 = self.definition_depths[entry1.word]
local def_depth2 = self.definition_depths[entry2.word]
if def_depth1 ~= def_depth2 then
if def_depth1 == nil then
return false
Expand Down

0 comments on commit 1e90708

Please sign in to comment.