From bfabeb89db838bd9829c801bdd261fd3e6d05ca7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 3 Aug 2009 16:47:44 -0400 Subject: Fixed bug with reloading PM width from session; modules/textadept/session.lua --- modules/textadept/session.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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() -- cgit v1.2.3