Volodymyr Chernetskyi
5bc7dbb13e
fix(loader): remove all cached loaders on disable #41613
...
Problem:
When disabling, the loader list is traversed forwards while entries are
removed. As a result, some entries are skipped and remain active. Thus,
disabling `vim.loader` restores `_G.loadfile`, but does not fully
restore the original package loader chain.
Solution:
Traverse `package.loaders` in reverse when removing cached loaders.
Capture the original `package.loaders` list in the test, and assert that
the list is restored properly.
2026-09-02 10:08:37 -04:00
..
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-08-27 16:12:11 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00
2026-08-13 09:17:16 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-09-02 07:45:52 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-09-02 10:08:37 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-29 12:54:43 -04:00
2026-07-24 13:05:20 +02:00
2026-08-27 06:14:24 -04:00
2026-08-23 07:13:41 -04:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00
2026-08-30 08:32:55 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-07-21 08:04:16 -04:00
2026-07-26 06:24:39 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-09-01 15:17:22 +00:00
2026-08-17 11:16:11 +08:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00
2026-07-21 13:22:39 +02:00
2026-08-26 07:18:22 -04:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00
2026-08-26 07:18:22 -04:00
2026-07-21 13:22:39 +02:00