From cd0f4144e2dae53ddfa9a908acab6a5e28513c99 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Wed, 29 Sep 2021 22:16:20 +0200 Subject: [PATCH] Fix call to missing project_files_limit --- data/core/commands/core.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/core/commands/core.lua b/data/core/commands/core.lua index b6604591..e836ea2f 100644 --- a/data/core/commands/core.lua +++ b/data/core/commands/core.lua @@ -66,9 +66,8 @@ command.add(nil, { end, ["core:find-file"] = function() - -- FIXME: core.project_files_limit was removed! - if core.project_files_limit then - return command.perform "core:open-file" + if not core.project_files_number() then + return command.perform "core:open-file" end local files = {} for dir, item in core.get_project_files() do