Age | Commit message (Collapse) | Author |
|
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}.
|
|
|
|
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.
|
|
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.
|
|
|