diff options
author | 2007-08-16 14:14:47 -0400 | |
---|---|---|
committer | 2007-08-16 14:14:47 -0400 | |
commit | 8b4b497a8694a70e154fb0356c05c448f881f9d7 (patch) | |
tree | 936d47a77383fca00fd9c0772577d74d1717c791 /src/textadept.c | |
parent | 9a1661bfbb3720221363981a0f511ca8888dde3b (diff) | |
download | textadept-8b4b497a8694a70e154fb0356c05c448f881f9d7.tar.gz textadept-8b4b497a8694a70e154fb0356c05c448f881f9d7.zip |
Renamed l_*_buffer_prop to l_*_bufferp, get arg changed; src/lua_interface.c
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.
Diffstat (limited to 'src/textadept.c')
0 files changed, 0 insertions, 0 deletions