aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/session.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 00:24:35 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-06-11 00:24:35 -0400
commit7a4800f05f26067a1cef77e5431256aab4c3d675 (patch)
treec20a86c11384fd8adb88af3acdd7d7757ebd0555 /modules/textadept/session.lua
parentc83387e378f72b303d692d951da841b581b3d453 (diff)
downloadtextadept-7a4800f05f26067a1cef77e5431256aab4c3d675.tar.gz
textadept-7a4800f05f26067a1cef77e5431256aab4c3d675.zip
Renamed textadept.events to events, renamed 'handle' and 'add_handler'.
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r--modules/textadept/session.lua5
1 files changed, 2 insertions, 3 deletions
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)