From eac1837a8687b8c8cbfe9982324e0a7b52727686 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Sun, 25 Jul 2021 00:15:40 +0200 Subject: [PATCH] DEBUG: Add new debug messages for new functions --- data/core/init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/core/init.lua b/data/core/init.lua index f828678f..fd61a37f 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -273,9 +273,11 @@ local function files_list_replace(as, i1, n, bs) if i > n or (j <= m and not files_info_equal(a, b) and not system.path_compare(a.filename, a.type, b.filename, b.type)) then + print("DEBUG FIX insert: ", b.filename, "before:", as[i1 + i] and as[i1 + i].filename) table.insert(as, i1 + i, b) i, j, n = i + 1, j + 1, n + 1 elseif j > m or system.path_compare(a.filename, a.type, b.filename, b.type) then + print("DEBUG FIX remove: ", a.filename, "before:", as[i1 + i + 1] and as[i1 + i + 1].filename) table.remove(as, i1 + i) n = n - 1 else