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

View File

@@ -189,7 +189,7 @@ function M.set_index_and_redraw(fname)
return i return i
end 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 if #entry.entries == 0 then
reload = true reload = true
populate(entry.entries, entry.absolute_path, entry) populate(entry.entries, entry.absolute_path, entry)