From cc8bc0b210d5716d970717e86216a6b059eecf05 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 15 Aug 2007 16:36:19 -0400 Subject: Renamed handlers module to events, updated everything to reflect changes. --- modules/textadept/macros.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/textadept/macros.lua') diff --git a/modules/textadept/macros.lua b/modules/textadept/macros.lua index 0d81f105..c97a372b 100644 --- a/modules/textadept/macros.lua +++ b/modules/textadept/macros.lua @@ -38,7 +38,7 @@ local function macro_notification(msg, wParam, lParam) textadept.statusbar_text = 'Macro recording' end end -textadept.handlers.add_handler_function('macro_record', macro_notification) +textadept.events.add_handler('macro_record', macro_notification) --- -- Starts recording a macro. @@ -81,7 +81,7 @@ function stop_recording() list[macro_name] = current save() textadept.statusbar_text = 'Macro saved' - textadept.handlers.handle('macro_saved') + textadept.events.handle('macro_saved') else textadept.statusbar_text = 'Macro not saved' end @@ -124,7 +124,7 @@ function delete(macro_name) if list[macro_name] then list[macro_name] = nil save() - textadept.handlers.handle('macro_deleted') + textadept.events.handle('macro_deleted') end end -- cgit v1.2.3