From 4d811a578baaae01c1aad34d9f3c176c40831841 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 18 Jun 2010 16:57:05 -0400 Subject: Fixed bug with args and sessions. --- modules/textadept/session.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index d3b7a1e4..5f5c4666 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -95,7 +95,8 @@ function load(filename) end return true end -events.connect('arg_none', load) -- load session when no args are present +events.connect('arg_none', -- load session when no args are present + function() if SAVE_ON_QUIT then load() end end) --- -- Saves a Textadept session to a file. -- cgit v1.2.3