diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-06-03 18:56:09 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-06-03 18:56:09 -0400 |
commit | 4d7499bc50a5d2c34a2b096e2fcc559dca57c9eb (patch) | |
tree | e6bfaf5328ede0dfebbea1287b66a5ede3451747 /core | |
parent | debcf40b4ecc670eed359f9c45d30cf36baf949e (diff) |
Fixed bug where default theme in _USERHOME is not loaded; core/gui.lua
Diffstat (limited to 'core')
-rw-r--r-- | core/gui.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/gui.lua b/core/gui.lua index a8900345..d2132bc2 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -19,7 +19,9 @@ local gui = gui -- The text displayed by the buffer statusbar. module('gui')]] -local theme = _HOME..'/themes/'..(not CURSES and 'light' or 'term')..'.lua' +local theme = package.searchpath(not CURSES and 'light' or 'term', + _USERHOME..'/themes/?.lua;'.. + _HOME..'/themes/?.lua') -- Helper function for printing messages to buffers. -- @see gui._print |