| Commit message (Collapse) | Author | Age |
... | |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The l_init function takes an additional reinit boolean as a result.
When resetting, the package.loaded and _G tables are cleared. Since the
textadept.buffers, textadept.views, and arg tables were originally in _G, they
were moved to the LUA_REGISTRYINDEX table so as not to be lost. They are still
available in _G, but as links to the tables in LUA_REGISTRYINDEX.
textadept.reset() sets a global RESETTING boolean to true when init.lua is
re-run so things like reloading a session or reloading files from the command
line do not occur. The boolean is set to nil afterwards.
|
|
|
|
|
|
|
|
| |
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.
|
|
|