fix: builtin register picker better sorting (#2175)

(cherry picked from commit 2428953db3)
This commit is contained in:
Tushar Kuntawar
2023-01-06 14:26:07 +01:00
committed by Simon Hauser
parent 8931c15a60
commit c640176e95
2 changed files with 4 additions and 5 deletions
+3 -2
View File
@@ -792,10 +792,11 @@ function make_entry.gen_from_registers(opts)
end
return function(entry)
local contents = vim.fn.getreg(entry)
return make_entry.set_default_entry_mt({
value = entry,
ordinal = entry,
content = vim.fn.getreg(entry),
ordinal = contents,
content = contents,
display = make_display,
}, opts)
end