fix: check 'after' against third directory

This commit is contained in:
Rafał Camlet 2020-08-15 19:32:10 +02:00 committed by Thomas Vigouroux
parent 994baf4539
commit 83210fa412

View file

@ -74,7 +74,7 @@ local function filter_files(file_list)
for _, fname in ipairs(file_list) do
-- Only get the name of the directory containing the queries directory
if vim.fn.fnamemodify(fname, ":p:h:h:t") == "after" then
if vim.fn.fnamemodify(fname, ":p:h:h:h:t") == "after" then
table.insert(after, fname)
-- The first one is the one with most priority
elseif #main == 0 then