On Fri, Oct 20, 2006 at 10:27:35AM +0200, Jean-Marc Lasgouttes wrote:
> >>>>> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
> 
> Jean-Marc> Updated patch attached.
> 
> This one adds mainly two things:
> 
> - backspacePos0 also handles the case where the paragraph before
>   cursor is empty.
> 
> - Delete(cur) is also rewritten (1) to be simpler and (2) to work with
>   these empty paragraphs.
> 
> Please test, in particular with change tracking.

The patch mostly works, however there still is something wrong.
What reported by Jürgen here:
http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg102813.html
still happens. I can add that after you set the cursor in the empty
paragraph, whatever you type appears before the linebreak, so there
seems to be an error about the cursor position.

I also managed to hang LyX with change tracking activated. To reproduce:
- new document
- create an ERT inset and write abc in it, followed by <return>
- activate change tracking and press backspace (to delete the empty line)
- select Document->Change Tracking->Accept All Changes
Now the cpu goes to 100% and LyX doesn't respond anymore.

-- 
Enrico

Reply via email to