summaryrefslogtreecommitdiff
path: root/lua/telescope/pickers/entry_display.lua
diff options
context:
space:
mode:
authorSimon Hauser <Simon-Hauser@outlook.de>2020-12-17 15:58:38 +0100
committerGitHub <noreply@github.com>2020-12-17 15:58:38 +0100
commitf078d149a1cfb9e98d9be400b6660dbaa6a58ce9 (patch)
treeeec5f8ee58e6939ebd5331c3e0b03598731a079f /lua/telescope/pickers/entry_display.lua
parente5233f39c50b723c562e6a6390ecf46b0237be68 (diff)
Update autocmd, highlights and help_tags previewers (#332)
Also make vim buffer line configurable
Diffstat (limited to 'lua/telescope/pickers/entry_display.lua')
-rw-r--r--lua/telescope/pickers/entry_display.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/telescope/pickers/entry_display.lua b/lua/telescope/pickers/entry_display.lua
index a6bf8f9..4edd0ae 100644
--- a/lua/telescope/pickers/entry_display.lua
+++ b/lua/telescope/pickers/entry_display.lua
@@ -1,6 +1,7 @@
local entry_display = {}
local function truncate(str, len)
+ str = tostring(str) -- We need to make sure its an actually a string and not a number
-- TODO: This doesn't handle multi byte chars...
if vim.fn.strdisplaywidth(str) > len then
str = str:sub(1, len - 1)