fix: builtin register picker better sorting (#2175)

This commit is contained in:
Tushar Kuntawar
2022-09-28 00:47:11 +05:30
committed by GitHub
parent a7ede53f06
commit 2428953db3
2 changed files with 4 additions and 5 deletions

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