aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-08-03 16:47:44 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-08-03 16:47:44 -0400
commitbfabeb89db838bd9829c801bdd261fd3e6d05ca7 (patch)
tree2a0918219767907d46ab0592788959bffde1439b /modules
parent40344c94c79f47a66bff025d71ee5451cf7b5a1d (diff)
downloadtextadept-bfabeb89db838bd9829c801bdd261fd3e6d05ca7.tar.gz
textadept-bfabeb89db838bd9829c801bdd261fd3e6d05ca7.zip
Fixed bug with reloading PM width from session; modules/textadept/session.lua
Diffstat (limited to 'modules')
-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 ba98a728..dd737cb5 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -72,7 +72,7 @@ function load(filename, only_pm)
local width, height = line:match('^size: (%d+) (%d+)$')
if width and height then textadept.size = { width, height } end
elseif line:find('^pm:') then
- local width, cursor, text = line:match('^pm: (%d+) ([%d:]+) (.+)$')
+ local width, cursor, text = line:match('^pm: (%d+) ([%d:]+) (.*)$')
textadept.pm.width = width or 0
textadept.pm.entry_text = text or ''
textadept.pm.activate()