aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-04-15 20:20:01 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-04-15 20:20:01 -0400
commita65b51f92a80fcbc46f1f176ddcf6a37eefcca02 (patch)
tree877f86b77e2cee38293f80673c01dbe794745260 /core/events.lua
parente8f17940194a75ed2800b0341ca558d6c41f34d1 (diff)
downloadtextadept-a65b51f92a80fcbc46f1f176ddcf6a37eefcca02.tar.gz
textadept-a65b51f92a80fcbc46f1f176ddcf6a37eefcca02.zip
Allow undocumented `events.MODIFIED` to emit position and length.
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/events.lua b/core/events.lua
index 7d7bdb1d..a1e2dd24 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -325,7 +325,8 @@ local scnotifications = {
[c.SCN_SAVEPOINTLEFT] = {'save_point_left'},
[c.SCN_DOUBLECLICK] = {'double_click', 'position', 'line', 'modifiers'},
[c.SCN_UPDATEUI] = {'update_ui', 'updated'},
- [c.SCN_MODIFIED] = {'modified', 'modification_type'}, -- undocumented
+ -- SCN_MODIFIED is undocumented.
+ [c.SCN_MODIFIED] = {'modified', 'modification_type', 'position', 'length'},
[c.SCN_MARGINCLICK] = {'margin_click', 'margin', 'position', 'modifiers'},
[c.SCN_USERLISTSELECTION] = {
'user_list_selection', 'wParam', 'text', 'position'