aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2007-08-15 16:36:19 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2007-08-15 16:36:19 -0400
commitcc8bc0b210d5716d970717e86216a6b059eecf05 (patch)
treece5674f4695da038208517f13920246bd9e9372d /modules/textadept/editing.lua
parentf332c1ccccc666e908eea56592b139ef685a99fd (diff)
downloadtextadept-cc8bc0b210d5716d970717e86216a6b059eecf05.tar.gz
textadept-cc8bc0b210d5716d970717e86216a6b059eecf05.zip
Renamed handlers module to events, updated everything to reflect changes.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua
index 282d5ad3..d15ebb9b 100644
--- a/modules/textadept/editing.lua
+++ b/modules/textadept/editing.lua
@@ -55,7 +55,7 @@ local enclosure = {
single_tag = { left = '<', right = ' />' }
}
-textadept.handlers.add_handler_function('char_added',
+textadept.events.add_handler('char_added',
function(c) -- matches characters specified in char_matches
if char_matches[c] then
buffer:insert_text( -1, char_matches[c] )
@@ -154,7 +154,7 @@ function show_call_tip(api, start)
buffer:call_tip_show(current_call_tip.start_pos, call_tip)
end
-textadept.handlers.add_handler_function('call_tip_click',
+textadept.events.add_handler('call_tip_click',
function(position) -- display the next or previous call tip
if not buffer:call_tip_active() then return end
if position == 1 and current_call_tip.num > 1 then