diff options
author | 2015-04-15 20:20:01 -0400 | |
---|---|---|
committer | 2015-04-15 20:20:01 -0400 | |
commit | a65b51f92a80fcbc46f1f176ddcf6a37eefcca02 (patch) | |
tree | 877f86b77e2cee38293f80673c01dbe794745260 /src/textadept.c | |
parent | e8f17940194a75ed2800b0341ca558d6c41f34d1 (diff) | |
download | textadept-a65b51f92a80fcbc46f1f176ddcf6a37eefcca02.tar.gz textadept-a65b51f92a80fcbc46f1f176ddcf6a37eefcca02.zip |
Allow undocumented `events.MODIFIED` to emit position and length.
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c index bf8ea078..262ed651 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1892,7 +1892,7 @@ static void lL_notify(lua_State *L, struct SCNotification *n) { lua_pushinteger(L, n->modificationType); lua_setfield(L, -2, "modification_type"); lua_pushstring(L, n->text), lua_setfield(L, -2, "text"); - //lua_pushinteger(L, n->length), lua_setfield(L, -2, "length"); + lua_pushinteger(L, n->length), lua_setfield(L, -2, "length"); // SCN_MODIFIED //lua_pushinteger(L, n->linesAdded), lua_setfield(L, -2, "lines_added"); //lua_pushinteger(L, n->message), lua_setfield(L, -2, "message"); lua_pushinteger(L, n->wParam), lua_setfield(L, -2, "wParam"); |