[code] io.snapopen() not working in Textadept 7.2

From: Ryan Pusztai <rpusztai.att.gmail.com>
Date: Mon, 5 May 2014 13:44:11 -0400


I am not able to use
    `io.snapopen( nil, nil, nil, { title = "Open Current Project", width =
ui.size[1] - 100 } )`
in the latest version. I tried to debug it and the logic seems good, but
"paths" is not getting set. It is always nil even after you set it to
"io.get_project_root()". I can't figure out why.
I change the code from:
    if not paths then paths = io.get_project_root() end
    local paths = paths or io.get_project_root()
and it works. Can anyone explain why paths is not able to be set? And if I
am using io.snapopen() wrong or is this a bug in Textadept?


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 05 May 2014 - 13:44:11 EDT

This archive was generated by hypermail 2.2.0 : Tue 06 May 2014 - 06:25:30 EDT