feat: add configuration to fix encoding of output of find_command in find_files (#2232)
This commit is contained in:
@@ -192,8 +192,15 @@ do
|
||||
return rawget(t, rawget(lookup_keys, k))
|
||||
end
|
||||
|
||||
return function(line)
|
||||
return setmetatable({ line }, mt_file_entry)
|
||||
if opts.file_entry_encoding then
|
||||
return function(line)
|
||||
line = vim.iconv(line, opts.file_entry_encoding, "utf8")
|
||||
return setmetatable({ line }, mt_file_entry)
|
||||
end
|
||||
else
|
||||
return function(line)
|
||||
return setmetatable({ line }, mt_file_entry)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user