Subject: Re: commit: Cut and Paste Lists plus other list improvements.
From: Mike Nordell (tamlin@algonet.se)
Date: Mon Jan 29 2001 - 21:40:08 CST
Martin Sevior wrote:
> This is a problem with our selection code. If you move the curosr to the
> line immediately before the first element it gets selected. I can hardware
> that if the left most pos of the selection region is a list-label field
> the selection includes the list label and the para-break behind it.
>
> Is this a good idea?
If I understood this corrrectly: I don't think so.
If we try to look at it in some kind of meta tags we would end up with
<list>
<elem>foo</elem>
<elem>bar</elem>
</list>
If this gets displayed as
- foo
- bar
and you position the cursor at the beginning of the "foo" line you'd assume
you were copying from the first "<elem>" tag above. Actually, you know the
"<list>" comes along also, otherwise we 'd have no list. On the other hand,
if you position the cursor just before the "f" in "foo" you'd *not* want the
"foo" as a list item (this selection behaviour is currenlty allowed by AW,
and IMO it's right)..
If this is what is correct, and the problem we have is that it's not copying
the first "<elem>" "tag" we have to fix that problem, not providing a
workaround.
> Yep. I know a few more :-( Hopefully no other crash bugs.
Perhaps it's time to put in some more asserts in the code? ;->
/Mike
This archive was generated by hypermail 2b25 : Mon Jan 29 2001 - 21:39:13 CST