aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-11-08 22:54:37 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-11-08 22:54:37 -0500
commit9225218eb00f350dd32a8a8592029f12ea7fb1d9 (patch)
tree43949dafc8660158395fe19e91b5155ba16738e1 /core/init.lua
parentcc9028fbf9b082252615595dae5580c7cb38c952 (diff)
downloadtextadept-9225218eb00f350dd32a8a8592029f12ea7fb1d9.tar.gz
textadept-9225218eb00f350dd32a8a8592029f12ea7fb1d9.zip
Search _USERHOME for theme names in addition to _HOME.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/init.lua b/core/init.lua
index 66293773..f3d81512 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -17,6 +17,13 @@ if f then
f:close()
if theme and #theme > 0 then _THEME = theme end
end
+theme = _THEME
+if not theme:find('[/\\]') then
+ _THEME = _HOME..'/themes/'..theme
+ if not lfs.attributes(_THEME) then
+ _THEME = _USERHOME..'/themes/'..theme
+ end
+end
require 'iface'
require 'locale'