aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-12-03 00:22:51 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2007-12-03 00:22:51 -0500
commit2527d1b94c6987cbe6e09d3b718a75a1283d5c90 (patch)
tree8e2a7386adb2d8c62b73841d85d342ab55aa61ab
parent9dfc3300fc94b8d346cfbaa36d5f289a2c169beb (diff)
downloadtextadept-2527d1b94c6987cbe6e09d3b718a75a1283d5c90.tar.gz
textadept-2527d1b94c6987cbe6e09d3b718a75a1283d5c90.zip
Fixed package precedence bug; init.lua
When Textadept opens a file that is associated with a module, it loads that module to get filetype-specific functionality. When operating in a directory like lexers/ and opening a lexer file, Textadept wants to open the Lua module but mistakenly thinks that the Lua lexer (lua.lua) is the module. This fix gives the module path precedence over the package path.
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 17915db4..44f7b13f 100644
--- a/init.lua
+++ b/init.lua
@@ -6,7 +6,7 @@ require 'ext/mime_types'
require 'ext/keys'
local mpath = _HOME..'modules/?.lua;'.._HOME..'/modules/?/init.lua'
-package.path = package.path..';'..mpath
+package.path = mpath..';'..package.path
-- modules to load on startup
require 'textadept'