We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87dae0f commit e4fb0b1Copy full SHA for e4fb0b1
lua/quicker/display.lua
@@ -59,7 +59,9 @@ M.get_filename_from_item = function(item)
59
local bufname = vim.api.nvim_buf_get_name(item.bufnr)
60
local path = fs.shorten_path(bufname)
61
local max_len = config.max_filename_width()
62
- if path:len() > max_len then
+ if max_len == 0 then
63
+ return ""
64
+ elseif path:len() > max_len then
65
path = "…" .. path:sub(path:len() - max_len - 1)
66
end
67
return path
0 commit comments