Skip to content

Commit

Permalink
fixed "invalid option to format"
Browse files Browse the repository at this point in the history
  • Loading branch information
Sohje committed Aug 7, 2023
1 parent 496238c commit 88fcf17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/qfview/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function M.qftextfunc(info)
local l = {}
for idx = info.start_idx, info.end_idx do
local line = string.format(
'%-' .. path_maxw .. 's' .. '|%-' .. linenr_maxw .. 's|%s',
'%-' .. math.min(path_maxw, 99) .. 's' .. '|%-' .. math.min(linenr_maxw, 99) .. 's|%s',
stripped_paths[idx],
linenrs[idx],
texts[idx]
Expand All @@ -183,5 +183,4 @@ function M.setup(options)
vim.api.nvim_set_option('quickfixtextfunc', "v:lua.require'qfview'.qftextfunc")
end


return M

0 comments on commit 88fcf17

Please sign in to comment.