From 8aa904114f0daebab1c0dbb2ef5efc8725cf6122 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 12 Dec 2013 12:14:29 -0500 Subject: Honor window maximized setting in session files; modules/textadept/session.lua --- modules/textadept/session.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 0e53137f..4c4a977b 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -87,8 +87,8 @@ function M.load(filename) current_view = tonumber(line:match('^current_view: (%d+)')) or 1 elseif line:find('^size:') then local maximized, width, height = line:match('^size: (%l*) ?(%d+) (%d+)$') - maximized = maximized == 'true' - if maximized then ui.maximized = true else ui.size = {width, height} end + ui.maximized = maximized == 'true' + if not ui.maximized then ui.size = {width, height} end elseif line:find('^recent:') then local filename = line:match('^recent: (.+)$') local recent, exists = io.recent_files, false -- cgit v1.2.3