[code] ui.size & ui.maximized

From: Carlos Pita <carlosjosepita.att.gmail.com>
Date: Mon, 9 Dec 2013 03:38:14 -0200

Hi all,

I found this behavior a bit inconsistent:

1) The session overrides any ui.size set in init.lua.

2) The session doesn't override ui.maximized=true set in lua.

The cause of this behavior seems to be in lines 89-91 of session.lua
(textadept 7.1):

      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

Shouldn't ui.maximized be set to false in case maximized is not 'true'?

Best regards

--
Carlos
-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 09 Dec 2013 - 00:38:14 EST

This archive was generated by hypermail 2.2.0 : Mon 09 Dec 2013 - 06:51:04 EST