> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
Jean-Marc> What about this different version?
Here is what I am going to apply right now.
JMarc
Index: status.13x
===
RCS file: /usr/local/lyx/cvsroot/lyx-devel/
Jean-Marc Lasgouttes wrote:
> I think it is overkill because index is the only inset that does not
> delete the selection when it is inserted.
>
> I think I'll apply this patch.
OK. Thank you for jumping in.
Jürgen
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
>> What about this different version?
Juergen> What about moving your code there and adding another bool for
Juergen> the case "just copy the selection and paste it inside the
Juergen> inset"? Or do you think this is overkill?
I
Jean-Marc Lasgouttes wrote:
> I am not sure the patch is really right: if I insert a TOC inset, it
> will mean that the selection is not replaced anymore, but it stays
> here. Actually, only INDEX requires to use the selection without
> deleting it.
You're right, the new behaviour should only app
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
Juergen> Jean-Marc Lasgouttes wrote:
>> The patch is wrong, because the index is not populated by
>> LFUN_PASTE (there is no underlying text inset). Try this one
>> instead.
Juergen> It works indeed. Would you like to include it?
Jean-Marc Lasgouttes wrote:
> The patch is wrong, because the index is not populated by LFUN_PASTE
> (there is no underlying text inset). Try this one instead.
It works indeed. Would you like to include it?
Jürgen
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:
Juergen> Inspired by a recent thread on lyx-users, and because I have
Juergen> to do an index for a book myself ATM, I have fixed the
Juergen> behaviour of index insertion when there is text selected. By
Juergen> now, the selected