On 20-Sep-2001 Jean-Marc Lasgouttes wrote:

> This would work indeed. Note however that, by not setting the
> selection (that will be cleared afterwards), we avoid an annoying
> flicker on screen. That's why I think my solution makes more sense. 

Sure I already told you to apply your solution if you're more or less
sure that it'll work, I was just discussing in general.

> Juergen> IMO the savest thing to do is reset ALL cursor par/pos we use
> Juergen> in LyXText when we delete a row-pointer. Deletion of
> Juergen> row-pointers is done in 1 or max 2 points so this shouldn't
> Juergen> behave too bad!
> 
> The problem also arises when the par itself is destroyed: imagine that
> you are on an empty paragraph and use S-Right to select with keyboard.
> I do not have a purify trace to back my claims (Michael?), but I
> suspect that, since the paragraph where the cursor used to be is
> destroyed, bad things happen.
> 
> So probably deleteEmptyParagraphMechanism should take care of these
> cases. What are the relevant cursors? It does not seem trivial to me
> to make this change...

Why not just deactivate the deleteEmtpyParagraphMechanism if we are
selecting? Just don't call it if we see we have a selection, IMO this
would be the best solution and it would also permit to start a selection
from a empty paragraph without the need to enter dummy chars just for the
selection.

        Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

I owe the government $3400 in taxes.  So I sent them two hammers and a
toilet seat.
                -- Michael McShane

Reply via email to