]> git.lyx.org Git - features.git/commitdiff
dekels small deleteemptyparagraphmechanism patch
authorLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 12 Apr 2000 14:58:27 +0000 (14:58 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Wed, 12 Apr 2000 14:58:27 +0000 (14:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@651 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
src/text2.C

index d5d7195af41ff1224dc6f6b5ed0e625bbb1ee669..26265255f0f2f42837d7deff3c2f521a0f9c5b39 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-04-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
+       * src/text2.C (DeleteEmptyParagraphMechanism): small patch posted
+       to the list by Dekel.
+
        * src/lyxfunc.C (Dispatch): make PARAGRAPH_SPACING compile with
        strstream too.
 
index 2a5a29d428502a30a3feabe8dbe81ea24130ec2a..74175d6c514cadfd4c1c022163b923c3e1d57761 100644 (file)
@@ -3483,13 +3483,13 @@ void LyXText::DeleteEmptyParagraphMechanism(LyXCursor const & old_cursor) const
                    && old_cursor.par->IsLineSeparator(old_cursor.pos)
                    && old_cursor.par->IsLineSeparator(old_cursor.pos - 1)) {
                        old_cursor.par->Erase(old_cursor.pos - 1);
-                       status = LyXText::NEED_MORE_REFRESH;
                        RedoParagraphs(old_cursor, old_cursor.par->Next());
                        // correct cursor
                        if (old_cursor.par == cursor.par &&
                            cursor.pos > old_cursor.pos) {
                                SetCursorIntern(cursor.par, cursor.pos - 1);
-                       }
+                       } else
+                               SetCursorIntern(cursor.par, cursor.pos);
                        return;
                }
        }