aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM.Mahdi Bakhshi <33148504+thantez@users.noreply.github.com>2020-08-10 18:31:58 +0430
committerGitHub <noreply@github.com>2020-08-10 18:31:58 +0430
commit7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7 (patch)
treea88ea4e24fb01da11c7a54007262eecf9e47ecd3
parent0472e50a845b35317cd1a58fb5068d37c73238f0 (diff)
downloadlite-xl-colors-7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7.tar.gz
lite-xl-colors-7390bb7f54ba5d80e3987dfc17f61c6a9728bdd7.zip
Update make_preview_image.lua
-rwxr-xr-xmake_preview_image.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/make_preview_image.lua b/make_preview_image.lua
index 8f6c55c..31f088d 100755
--- a/make_preview_image.lua
+++ b/make_preview_image.lua
@@ -1,8 +1,9 @@
#!/usr/bin/lua
-local filename = "..."
+local filename = ...
local name = filename:match("([^\\/]+)%..*$") .. "_preview"
+
-- get colors
local text = io.open(filename):read("*a")
local colors = {}