Age | Commit message (Collapse) | Author |
|
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.
|
|
When files are passed by the command line, they are assumed to be relative to
Textadept's path. Instead, check if the file has a leading '~/' or '/'
indicating an absolute path. If so, do not treat it that way. Otherwise treat
it as relative.
|
|
|
|
|
|
When the path to the Textadept executable is not specified, base_dir is nil.
Attempting to concat it with a filename throws an error, so base_dir defaults
to the empty string.
|
|
|