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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The visibility of statusbar and doc_statusbar is also toggled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Modified C++ code structure to be more consistent throughout. Also added
comments for functions that handle key events, indicating which (hard-coded)
keys trigger what actions.
|
|
Stack index argument to l_get_buffer_prop was not intuitive because it was
essentially index - 1. So after lua_getglobal(lua, "buffer"), the index arg to
l_get_buffer_prop had to be -2 because the property name is pushed onto the
stack before calling lua_rawget. Instead, l_get_bufferp subtracts 1 from the
index it is given, so -1 can be used.
|