From 2428953db3d6b239cc2cb75f7a09ad01ab7d2359 Mon Sep 17 00:00:00 2001 From: Tushar Kuntawar <2002.tushar.kuntawar@gmail.com> Date: Wed, 28 Sep 2022 00:47:11 +0530 Subject: fix: builtin register picker better sorting (#2175) --- lua/telescope/make_entry.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lua/telescope/make_entry.lua') 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 -- cgit v1.2.3