From 7a4800f05f26067a1cef77e5431256aab4c3d675 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 11 Jun 2010 00:24:35 -0400 Subject: Renamed textadept.events to events, renamed 'handle' and 'add_handler'. --- modules/textadept/session.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 30d9e823..3535bca1 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -51,7 +51,7 @@ function load(filename) else textadept.new_buffer() buffer._type = filename - textadept.events.handle('file_opened', filename) + events.handle('file_opened', filename) end -- Restore saved buffer selection and view. local anchor = tonumber(anchor) or 0 @@ -168,5 +168,4 @@ function save(filename) end end -textadept.events.add_handler('quit', - function() if SAVE_ON_QUIT then save() end end, 1) +events.connect('quit', function() if SAVE_ON_QUIT then save() end end, 1) -- cgit v1.2.3