aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/session.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua
index b44a777c..81023328 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -114,7 +114,7 @@ function M.load(filename)
return true
end
-- Load session when no args are present.
-events.connect('arg_none', function()
+events.connect(events.ARG_NONE, function()
if M.SAVE_ON_QUIT then M.load(M.DEFAULT_SESSION) end
end)