Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
Since l_check{view|docpointer} throw errors, the unprotected C functions that
call them will cause a Lua panic if either textadept.views or textadept.buffers
does not exist and Textadept will exit. This makes sense since the two tables
are integral to the application. Therefore instead of checking if either table
exists in those unprotected C functions and handling a failed check safely,
throw an error and exit Textadept anyway because sooner or later one will be
thrown from l_check{view|docpointer}.
|
|
|
|
Changeset 15 introduced an 'increment' variable that is normally +/-1 for find
next and find prev respectively. However instead of adding the increment for
find prev, it subtracts it, effectively adding 1 which is not right.
|
|
|