Well as the subject tells us this should fix #350

          Jug

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
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
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Cabbage, n.:
        A familiar kitchen-garden vegetable about as large and wise as
        a man's head.
                -- Ambrose Bierce, "The Devil's Dictionary"

Index: src/text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.226
diff -u -p -r1.226 text2.C
--- src/text2.C 22 Apr 2002 16:31:12 -0000      1.226
+++ src/text2.C 29 Apr 2002 14:11:00 -0000
@@ -2405,6 +2405,11 @@ void LyXText::fixCursorAfterDelete(Buffe
        if (cur.pos() > where.pos())
                cur.pos(cur.pos()-1);
 
+       // check also if we don't want to set the cursor on a spot behind the
+       // pagragraph because we erased the last character.
+       if (cur.pos() > cur.par()->size())
+               cur.pos(cur.par()->size());
+       
        // recompute row et al. for this cursor
        setCursor(bview, cur, cur.par(), cur.pos(), cur.boundary());
 }

Reply via email to