diff options
author | 2007-12-03 00:22:51 -0500 | |
---|---|---|
committer | 2007-12-03 00:22:51 -0500 | |
commit | 2527d1b94c6987cbe6e09d3b718a75a1283d5c90 (patch) | |
tree | 8e2a7386adb2d8c62b73841d85d342ab55aa61ab | |
parent | 9dfc3300fc94b8d346cfbaa36d5f289a2c169beb (diff) | |
download | textadept-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.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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' |