As of 2965 of the trunk, and  rev 2977 of the "until" branch, Leo's
goto-global line command now works.  This fixes bug 363406.

Even for somebody that has been writing tree traversals on a regular
basis for 15+ years, this was a challenge. A very stringent unit test
made the work easier. Notice the care that the test must take to avoid
off-by-one errors as it converts from zero-based to one-based line
numbers.

But this is just the tip of the iceberg. The Ahas are the invariants
in countLinesHelper.  The trick is that n (the target line number)
**doesn't** change.  It took me a long time to realize that the
algorithm must keep track of both skipped_lines and effective_lines.

Please test the code and report any further problems.

At this point, I would say that Leo 4.7 is code complete.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to