From 4d7499bc50a5d2c34a2b096e2fcc559dca57c9eb Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 3 Jun 2013 18:56:09 -0400 Subject: Fixed bug where default theme in _USERHOME is not loaded; core/gui.lua --- core/gui.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core') 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 -- cgit v1.2.3