We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d3f327 commit 063cc44Copy full SHA for 063cc44
1 file changed
lua/quicker/display.lua
@@ -71,10 +71,18 @@ M.get_filename_from_item = function(item)
71
end
72
73
local _col_width_cache = {}
74
+local _last_max_width = nil
75
+
76
---@param id integer
77
---@param items QuickFixItem[]
78
---@return integer
79
local function get_cached_qf_col_width(id, items)
80
+ local current_max_width = config.max_filename_width()
81
+ if _last_max_width ~= current_max_width then
82
+ _col_width_cache = {}
83
+ _last_max_width = current_max_width
84
+ end
85
86
local cached = _col_width_cache[id]
87
if not cached or cached[2] ~= #items then
88
local max_len = 0
0 commit comments