summaryrefslogtreecommitdiff
path: root/lua/telescope/entry_manager.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-11-13 16:20:09 +0100
committerGitHub <noreply@github.com>2020-11-13 10:20:09 -0500
commitba52c70a60fb7e34a1512355ace2cd984705b7c6 (patch)
treeb661ad310b3d8a29bfad866e47d9a96882e1e7bc /lua/telescope/entry_manager.lua
parent64aae0abd83ac852c9751d4b42310f6a213c3fd1 (diff)
fix: selection_strategies row and follow (#218)
Diffstat (limited to 'lua/telescope/entry_manager.lua')
-rw-r--r--lua/telescope/entry_manager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/telescope/entry_manager.lua b/lua/telescope/entry_manager.lua
index d53586e..fea0b7a 100644
--- a/lua/telescope/entry_manager.lua
+++ b/lua/telescope/entry_manager.lua
@@ -53,7 +53,7 @@ function EntryManager:new(max_results, set_entry, info)
local existing_entry = v.entry
-- FIXME: This has the problem of assuming that display will not be the same for two different entries.
- if existing_entry.display == entry.display then
+ if existing_entry == entry then
return k
end
end
@@ -110,7 +110,7 @@ function EntryManager:insert(picker, index, entry)
-- and then shift all the corresponding items one place.
local next_entry, last_score
repeat
- self.info.inserted = self.info.inserted + 1
+ self.info.inserted = self.info.inserted + 1
next_entry = self.entry_state[index]
self.set_entry(picker, index, entry.entry, entry.score)