Goto Script query

30 views
Skip to first unread message

lewis

unread,
Jan 12, 2017, 8:48:39 AM1/12/17
to leo-editor
In the IconBar hover over a [Global Script button], right-click, select Goto Script.
If the file is currently open, then the cursor switches to the file and lands at the correct node in the @button list.
However if If the file is NOT currently open, then Leo opens the file, the cursor doesn't land at the correct node in the @button list; it appears to land at the middle of the @button node list.
With the file now open, Goto Script behaves as expected.

Leo 5.4, build 20170112075352, Thu Jan 12 07:53:52 EST 2017
Git repo info: branch = master, commit = fbe428c75ddd
Python 3.6.0, PyQt version 5.7.1
Windows 10 AMD64 (build 10.0.14393) SP0


Regards
Lewis

Edward K. Ream

unread,
Jan 12, 2017, 11:41:51 AM1/12/17
to leo-editor
On Thu, Jan 12, 2017 at 8:48 AM, lewis <lewi...@operamail.com> wrote:
In the IconBar hover over a [Global Script button], right-click, select Goto Script.
If the file is currently open, then the cursor switches to the file and lands at the correct node in the @button list.
However if If the file is NOT currently open, then Leo opens the file, the cursor doesn't land at the correct node in the @button list; it appears to land at the middle of the @button node list.
With the file now open, Goto Script behaves as expected.

​Please file a bug report.  The code involved is surprisingly complicated.  It's not surprising you have found an edge case.

EKR

lewis

unread,
Jan 12, 2017, 6:19:23 PM1/12/17
to leo-editor
Issue 367 raised
Reply all
Reply to author
Forward
0 new messages