Skip to content

Commit b42e0cf

Browse files
committed
fix: Should default to starts with only
1 parent 96e821e commit b42e0cf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/plenary/reload.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
local reload = {}
22

33
reload.reload_module = function(module_name, starts_with_only)
4+
-- Default to starts with only
5+
if starts_with_only == nil then
6+
starts_with_only = true
7+
end
8+
49
-- TODO: Might need to handle cpath / compiled lua packages? Not sure.
510
local matcher
611
if not starts_with_only then

0 commit comments

Comments
 (0)