aboutsummaryrefslogtreecommitdiff
path: root/src/find_replace.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-08-16 14:02:17 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-08-16 14:02:17 -0400
commit9a1661bfbb3720221363981a0f511ca8888dde3b (patch)
tree98a4f7dee7e5b5a505ee655ad6f338edde05f1d7 /src/find_replace.c
parent0b89c203fd9b39093810bbd567e3a022b6cdbc43 (diff)
downloadtextadept-9a1661bfbb3720221363981a0f511ca8888dde3b.tar.gz
textadept-9a1661bfbb3720221363981a0f511ca8888dde3b.zip
If l_ta_get for "views" or "buffers" fails, throw an error; src/lua_interface.c
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}.
Diffstat (limited to 'src/find_replace.c')
0 files changed, 0 insertions, 0 deletions