Bo Peng wrote:
The attached patch addresses the following problem:

line1
line2<line break>
<empty line>
line 3

1. Click after line2, the cursor moves to the empty line (unnatural behavior)
2. from the end of line1, down arrow moves the cursor to the empty
line, instead of end of line2 (unnatural behavior)
3. continue from 2, up arrow failes to move the cursor. (Bug)

Problem:

When clicking after line2, the cursor moves to the end of line 2,
which is actually the empty line because the end of paragraph is a
linebreak. The bug (behavior 3) is caused by the fact that lyx tries
to move the cursor to line 2, but ends up to the empty line again.

Solution:
Move to the end of the paragraph only if the last inset is not InsetNewline

I can reproduce the bug and your solution seems correct to me.

Abdel.


Reply via email to