summaryrefslogtreecommitdiff
path: root/lua/telescope/make_entry.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/telescope/make_entry.lua')
-rw-r--r--lua/telescope/make_entry.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/telescope/make_entry.lua b/lua/telescope/make_entry.lua
index 288a471..96be07f 100644
--- a/lua/telescope/make_entry.lua
+++ b/lua/telescope/make_entry.lua
@@ -664,9 +664,10 @@ function make_entry.gen_from_registers(_)
}
local make_display = function(entry)
+ local content = entry.content
return displayer {
{'[' .. entry.value .. ']', "TelescopeResultsNumber"},
- entry.content,
+ type(content) == 'string' and content:gsub('\n','\\n') or content,
}
end