On Tue, Dec 04, 2001 at 04:35:39PM +1000, Allan Rae wrote:
> Andre's cursor-as-a-stack implementation should work fine for this and
> would remove a bunch of stuff from the code too it would seem. 

Honour to whom honour is true: The concept is from the math cursor first
implemented by Alejandro. And even after the rework, the math cursor does
exactly this: Hold two stacks of "cursor positions" (one for the cursor,
one for the selection anchor), each position is a triplet of values:
(pointer to an inset, cell number of the inset, offset in that cell)

> In particular there would be no owner_ anymore as you can find out the
> owner by popping the cursor stack -- or walking down it anyway.
 
> If I move right I end up in the inset or step over it depending on
> whether its a collapsed inset or not.

(aka ++pos;  ;-)

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to