aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/session.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 22:23:23 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-09-09 22:23:23 -0400
commitab270f6797d4a974c0b25167c78482cb818a0e07 (patch)
treed6c6e1b6929d21d2d42e373916b5dcfc34ca7f5b /modules/textadept/session.lua
parent7e88330753edcf2df034e2240c2e77e1006d2e64 (diff)
downloadtextadept-ab270f6797d4a974c0b25167c78482cb818a0e07.tar.gz
textadept-ab270f6797d4a974c0b25167c78482cb818a0e07.zip
Use `events.ARG_NONE` constant instead of string.
Diffstat (limited to 'modules/textadept/session.lua')
-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)