diff options
author | 2012-01-01 12:32:38 -0500 | |
---|---|---|
committer | 2012-01-01 12:32:38 -0500 | |
commit | 3d6f697add4606a1a84f9d77993d8f05daf4f8fe (patch) | |
tree | f98059344b097e3843908277206ebc69f2b226f7 /modules/textadept/session.lua | |
parent | bd55d676f133a5b38ca53c33bf599d66dfe1fc87 (diff) | |
download | textadept-3d6f697add4606a1a84f9d77993d8f05daf4f8fe.tar.gz textadept-3d6f697add4606a1a84f9d77993d8f05daf4f8fe.zip |
Code cleanup.
Diffstat (limited to 'modules/textadept/session.lua')
-rw-r--r-- | modules/textadept/session.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index fe77650d..99ac0c46 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -61,8 +61,7 @@ function M.load(filename) buffer:visible_from_doc_line(first_visible_line)) buffer:set_sel(anchor, current_pos) elseif line:find('^%s*split%d:') then - local level, num, type, size = - line:match('^(%s*)split(%d): (%S+) (%d+)') + local level, num, type, size = line:match('^(%s*)split(%d): (%S+) (%d+)') local view = splits[#level] and splits[#level][tonumber(num)] or view splits[#level + 1] = { view:split(type == 'true') } splits[#level + 1][1].size = tonumber(size) -- could be 1 or 2 |