diff options
author | 2013-12-12 12:14:29 -0500 | |
---|---|---|
committer | 2013-12-12 12:14:29 -0500 | |
commit | 8aa904114f0daebab1c0dbb2ef5efc8725cf6122 (patch) | |
tree | eca5fcdf507a60930962af7ff136b4a4b7b64ca6 | |
parent | 1a2b4bfecce766e97dc16009997599a7846c64b6 (diff) |
Honor window maximized setting in session files; modules/textadept/session.lua
-rw-r--r-- | modules/textadept/session.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |