From f078d149a1cfb9e98d9be400b6660dbaa6a58ce9 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Thu, 17 Dec 2020 15:58:38 +0100 Subject: Update autocmd, highlights and help_tags previewers (#332) Also make vim buffer line configurable --- lua/telescope/pickers/entry_display.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua/telescope/pickers/entry_display.lua') 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) -- cgit v1.2.3