summaryrefslogtreecommitdiff
path: root/lua/telescope/entry_manager.lua
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-10-08 22:31:44 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2020-10-08 22:31:44 -0400
commit59497d664086c4c7aa24a15a1c3b9ccf718ce9c7 (patch)
treefc418ff9dbfd96579ccb897c0f15f47c19894bb6 /lua/telescope/entry_manager.lua
parent7938ace0f6681e5bd5207283036b496416879c67 (diff)
feat: Do a bit better sorting for command history
To be honest, I'm not 100% sure this is fantastic, but it's definitely a step in the right direction for command history. Closes: #150
Diffstat (limited to 'lua/telescope/entry_manager.lua')
-rw-r--r--lua/telescope/entry_manager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/entry_manager.lua b/lua/telescope/entry_manager.lua
index 532cca2..d53586e 100644
--- a/lua/telescope/entry_manager.lua
+++ b/lua/telescope/entry_manager.lua
@@ -113,7 +113,7 @@ function EntryManager:insert(picker, index, entry)
self.info.inserted = self.info.inserted + 1
next_entry = self.entry_state[index]
- self.set_entry(picker, index, entry.entry)
+ self.set_entry(picker, index, entry.entry, entry.score)
self.entry_state[index] = entry
last_score = entry.score