Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lite XL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andy Nichols
Lite XL
Commits
23575b30
Commit
23575b30
authored
4 years ago
by
Francesco Abbate
Browse files
Options
Downloads
Patches
Plain Diff
Fix syntax error with previous commit
parent
1c4b8cf3
No related branches found
Branches containing commit
Tags
v1.13-lite-xl
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
data/core/init.lua
+3
-3
3 additions, 3 deletions
data/core/init.lua
with
3 additions
and
3 deletions
data/core/init.lua
+
3
−
3
View file @
23575b30
...
...
@@ -106,7 +106,7 @@ local function create_user_directory()
error
(
"cannot create directory: \"" .. dirname_create .. "
\
""
)
end
end
for
_
,
modname
in
ipairs
([
'plugins'
,
'colors'
])
do
for
_
,
modname
in
ipairs
{
'plugins'
,
'colors'
}
do
local
subdirname
=
dirname_create
..
'/'
..
modname
if
not
system
.
mkdir
(
subdirname
)
then
error
(
"cannot create directory: \"" .. subdirname .. "
\
""
)
...
...
@@ -249,9 +249,9 @@ end
function core.load_plugins()
local no_errors = true
for _, root_dir in ipairs
([
DATADIR, USERDIR
])
do
for _, root_dir in ipairs
{
DATADIR, USERDIR
}
do
local files = system.list_dir(root_dir .. "
/
plugins
")
for _, filename in ipairs(files) do
for _, filename in ipairs(files
or {}
) do
local modname = "
plugins
.
" .. filename:gsub("
.
lua
$
", "")
local ok = core.try(require, modname)
if ok then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment