summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
authorTushar Kuntawar <2002.tushar.kuntawar@gmail.com>2022-09-28 00:47:11 +0530
committerGitHub <noreply@github.com>2022-09-27 21:17:11 +0200
commit2428953db3d6b239cc2cb75f7a09ad01ab7d2359 (patch)
tree9ce21bc46adbd01194fee93ecea418121c716cca /lua/telescope/make_entry.lua
parenta7ede53f06e657d7f682284730b95c3af6dfc345 (diff)
fix: builtin register picker better sorting (#2175)
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 7f2484b..6334bc5 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -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