Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
Instead of the normal tree view search function which matches the start of a
string, a new search function is used which uses strstr, matching anywhere in a
string.
|
|
|
|
|
|
Adapted conditionals from SciTE to fix a bug where the caret is sometimes placed
incorrectly when trying to maintain indentation.
|
|
|
|
|
|
'%%' is now properly escaped.
%() sequence executes Lua code, showing an error dialog if one occured.
|
|
When switching to another buffer, typing text, and switching back, the scroll
position was not restored properly all of the time. Fixed by setting the anchor
and caret first, which scrolls some number of lines, then scrolling the
remaining number of lines to restore the original scroll position.
|
|
|
|
|
|
Instead of raising errors which call Lua's textadept.handlers.error function
(which at this point in time opens a new buffer and prints the error message),
quietly print warnings to STDOUT because an error hasn't really occured.
|
|
|
|
Originally just the global environment was available for executing Lua code in
snippets, but now a 'selected_text' variable is available for (key) commands
that insert snippets. This is typically useful for wrapping selected text in a
snippet.
|
|
Option variables for file in/out, redirect, and Ruby are not longer used.
|
|
|
|
Each buffer function or property is matched to prefix before being added to the
completion list.
|
|
|
|
'find' has an additional nowrap parameter that 'replace_all' uses so the latter
will not loop indefinately if there are still matches in the document.
'find' also sets search_anchor more appropriately based on context so some
matches aren't skipped accidentally.
|
|
If p1_type == tLENGTH and p2_type == tSTRINGRESULT, both parameters can be
ignored because p1_type is filled with the length of p2_type, which is not
needed.
|
|
Added SCN notification constants to textadept.constants table and updated the
filepath to iface.lua to reflect the new directory structure.
|
|
docstatusbar_text now uses 4 spaces instead of pipes for separation.
Command completion entries are sorted and the ':' character is allowed. If the
path is 'buffer', show the available functions or properties depending on if
'buffer' is followed by a '.' or ':' in addition to its table fields.
|
|
docstatusbar is now at bottom left and statusbar is at bottom right.
|
|
Shebangs are split into words which are looked up in a shebangs table to
determine the proper lexer language for the buffer.
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|