Use platform path separator when setting tree index. (#269)

This commit is contained in:
Per Larsson 2021-04-05 22:01:02 +02:00 committed by GitHub
parent de93da78a9
commit 3350e4e97e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -189,7 +189,7 @@ function M.set_index_and_redraw(fname)
return i
end
if fname:match(entry.match_path..'/') ~= nil then
if fname:match(entry.match_path..utils.path_separator) ~= nil then
if #entry.entries == 0 then
reload = true
populate(entry.entries, entry.absolute_path, entry)