fix: let override function works,fix #1287 #1278

This commit is contained in:
tomasky 2022-06-28 12:33:34 +08:00 committed by siduck
parent f5b6a67ebb
commit 6ff356ae93

View File

@ -149,7 +149,8 @@ M.load_override = function(default_table, plugin_name)
if type(user_table) == "function" then if type(user_table) == "function" then
user_table = user_table() user_table = user_table()
elseif type(user_table) == "table" then end
if type(user_table) == "table" then
default_table = merge_tb("force", default_table, user_table) default_table = merge_tb("force", default_table, user_table)
else else
default_table = default_table default_table = default_table