From 2527d1b94c6987cbe6e09d3b718a75a1283d5c90 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 3 Dec 2007 00:22:51 -0500 Subject: 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. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- cgit v1.2.3