On Tue, 13 Jan 2009 08:19:31 -0800 (PST)
"Edward K. Ream" <[email protected]> wrote:

> Hahaha.  The code is/was essentially correct.  The "fix" is to realize
> that c.vnode2position just returns *one* position p2 (of several
> possible) positions such that p2.v == v.

Hahaha. Hahaha. 8-)  This is still not working for me, because when I
pass in a vnode for which there is no position (i.e. plugin's holding a
reference to a vnode which has been removed from the tree), it tries to
pop from an empty stack.  I still don't see why we can't test the stack
isn't empty before popping and return c.nullPosition() if it is empty.
Would that be ok?

Cheers -Terry

--~--~---------~--~----~------------~-------~--~----~
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